Skip to content

Instantly share code, notes, and snippets.

@prafullakumar
Created January 24, 2021 13:26
Show Gist options
  • Save prafullakumar/74cd9fe4f81859d0c21afd21c9a658f2 to your computer and use it in GitHub Desktop.
Save prafullakumar/74cd9fe4f81859d0c21afd21c9a658f2 to your computer and use it in GitHub Desktop.
//use any way you want
struct ContentView: View {
var body: some View {
VStack {
Rectangle()
.frame(width: 100, height: 100, alignment: .center)
.cornerRadius(radius: 20.0, corners: [.topLeft])
Rectangle()
.frame(width: 100, height: 100, alignment: .center)
.cornerRadius(radius: 20.0, corners: [.topLeft, .bottomLeft])
Rectangle()
.frame(width: 100, height: 100, alignment: .center)
.cornerRadius(radius: 20.0, corners: [.allCorners])
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment