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 {
|
NavigationView {
|
||||||
VStack {
|
VStack {
|
||||||
TextField("Username", text: $username)
|
TextField("Username", text: $username)
|
||||||
|
.disableAutocorrection(true)
|
||||||
|
.autocapitalization(.none)
|
||||||
NavigationLink(destination: ProfileView(username: username)) {
|
NavigationLink(destination: ProfileView(username: username)) {
|
||||||
Text("Show Feed")
|
Text("Show Feed")
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue