Skip to content

Instantly share code, notes, and snippets.

@hrvolapeter
Created March 22, 2020 17:28
Show Gist options
  • Save hrvolapeter/ff5542f685a1fd7ac6dc26dc4f7f1ee2 to your computer and use it in GitHub Desktop.
Save hrvolapeter/ff5542f685a1fd7ac6dc26dc4f7f1ee2 to your computer and use it in GitHub Desktop.
Zetten - createAccountView part 2
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