Created
September 23, 2019 20:48
-
-
Save alyssoncm/1418ea0cebe592c3f73596fddb9f1ee2 to your computer and use it in GitHub Desktop.
strut3
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 SignUpView: View { | |
@State var username: String = "" | |
@State var password: String = "" | |
@State var email: String = "" | |
var body: some View { | |
VStack{ | |
Text("Sign Up") | |
TextField("Username", text: $username) | |
SecureField("Password", text: $password) | |
TextField("Email (optional)", text: $email) | |
Button(action: { | |
}){ | |
Text("Sign Up!") | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment