-
-
Save ncooke3/26e13e49481c7da731168a18a61a5133 to your computer and use it in GitHub Desktop.
Success View
This file contains 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
// ContentView.swift | |
/// Displayed when a user successfuly logs in. | |
struct SuccessView: View { | |
let email: String | |
var body: some View { | |
/// The first view in this `ZStack` is a `Color` view that expands | |
/// to set the background color of the `SucessView`. | |
ZStack { | |
Color.orange | |
.edgesIgnoringSafeArea(.all) | |
VStack(alignment: .leading) { | |
Group { | |
Text("Welcome") | |
.font(.largeTitle) | |
.fontWeight(.semibold) | |
Text(email.lowercased()) | |
.font(.title3) | |
.fontWeight(.bold) | |
.multilineTextAlignment(.leading) | |
} | |
.padding(.leading) | |
Image(systemName: "checkmark.circle") | |
.resizable() | |
.aspectRatio(contentMode: .fit) | |
.scaleEffect(0.5) | |
} | |
.foregroundColor(.white) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment