Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created April 12, 2020 07:58
Show Gist options
  • Save wizard1066/47beff1f76cc0e7ddbd01e2086dbf21a to your computer and use it in GitHub Desktop.
Save wizard1066/47beff1f76cc0e7ddbd01e2086dbf21a to your computer and use it in GitHub Desktop.
ddwtp4
struct ContentView: View {
var body: some View {
let screenSize = UIScreen.main.bounds
let screenWidth = screenSize.width
let screenHeight = screenSize.height
return ScrollView(Axis.Set.horizontal, showsIndicators: true) {
VStack {
ZStack {
Rectangle()
.fill(Color.yellow)
.frame(minWidth: screenWidth, maxHeight: screenHeight * 0.6)
Text("Dominos with Better Programming")
.font(Fonts.zapfino(size: 48))
.opacity(0.5)
}
HStack {
DominoWrapper(highImage: "Image-14", lowImage: "Image-12")
DominoWrapper(highImage: "Image-10", lowImage: "Image-9")
DominoWrapper(highImage: "Image-15", lowImage: "Image-4")
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment