Disable auto correction and capitalization for username field
This commit is contained in:
parent
633365b055
commit
f7372d6473
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ struct MainView: View {
|
|||
NavigationView {
|
||||
VStack {
|
||||
TextField("Username", text: $username)
|
||||
.disableAutocorrection(true)
|
||||
.autocapitalization(.none)
|
||||
NavigationLink(destination: ProfileView(username: username)) {
|
||||
Text("Show Feed")
|
||||
}
|
||||
|
|
Reference in a new issue