Created
March 22, 2020 17:28
-
-
Save hrvolapeter/ff5542f685a1fd7ac6dc26dc4f7f1ee2 to your computer and use it in GitHub Desktop.
Zetten - createAccountView part 2
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
struct CreateAccountView: View { | |
@State var email: String = "" | |
@State var password: String = "" | |
var body: some View { | |
VStack { | |
Text("Create an account") | |
.font(.title) | |
TextField("Email", text: $email) | |
.autocapitalization(.none) | |
SecureField("Password", text: $password) | |
.autocapitalization(.none) | |
Button( | |
"Create", | |
action: {} | |
) | |
Divider() | |
Text("An account allows to save and access notes across devices.") | |
.font(.footnote) | |
.foregroundColor(.gray) | |
Spacer() | |
}.padding() | |
} | |
} | |
struct CreateAccountView_Previews: PreviewProvider { | |
static var previews: some View { | |
CreateAccountView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment