Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created April 12, 2020 07:07
Show Gist options
  • Save wizard1066/c2491589df14cdbd83b3bd64cf002542 to your computer and use it in GitHub Desktop.
Save wizard1066/c2491589df14cdbd83b3bd64cf002542 to your computer and use it in GitHub Desktop.
ddwtp2
struct Domino: View {
var body: some View {
return Rectangle()
.fill(Color.clear)
.frame(width: 48, height: 96, alignment: .center)
.background(
VStack {
Image("Image-0")
.resizable()
.frame(width: 32, height: 32, alignment: .top)
.padding(4)
Divider()
.frame(width: 24, height: 2, alignment: .center)
Image("Image-1")
.resizable()
.frame(width: 32, height: 32, alignment: .bottom)
.padding(4)
})
.overlay(RoundedRectangle(cornerRadius: 8)
.stroke(lineWidth: 2))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment