Last active
September 4, 2020 10:41
-
-
Save aataraxiaa/15b2263e37f816cec6c75de8834327ff to your computer and use it in GitHub Desktop.
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 OnboardingView: View { | |
var body: some View { | |
// #1 | |
VStack { | |
Spacer(minLength: 150) | |
Image(systemName: "wand.and.stars") | |
.resizable() | |
.aspectRatio(contentMode: .fit) | |
.frame(width: 80, height: 80, alignment: .center) | |
Text("Welcome To My App") | |
.font(Font.title2.bold().lowercaseSmallCaps()) | |
.multilineTextAlignment(.center) | |
Spacer(minLength: 60) | |
Text("Something something this app 🤪") | |
Spacer(minLength: 30) | |
Text("And another something!") | |
Spacer(minLength: 30) | |
Text("And finally 🥳...some...thing") | |
// #2 | |
OnboardingButton() | |
} | |
.background(Color.gray) | |
.foregroundColor(.white) | |
.ignoresSafeArea(.all, edges: .all) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment