Created
March 30, 2022 08:25
-
-
Save barrault01/af65009d3e42f8b23ad30e82992fc6c2 to your computer and use it in GitHub Desktop.
Logging Screen
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 ContentView: View { | |
@ObservedObject var user = User() | |
var body: some View { | |
VStack { | |
HStack { | |
Text("Username:") | |
TextField("", text: $user.username) | |
.textFieldStyle(.roundedBorder) | |
} | |
.padding() | |
HStack { | |
Text("Password:") | |
SecureField("", text: $user.password) | |
.textFieldStyle(.roundedBorder) | |
} | |
.padding() | |
Toggle("Protect with Face ID", isOn: $user.protectWithTouchID) | |
.padding() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment