Created
April 12, 2020 07:58
-
-
Save wizard1066/47beff1f76cc0e7ddbd01e2086dbf21a to your computer and use it in GitHub Desktop.
ddwtp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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