1
Fork 0

Disable auto correction and capitalization for username field

This commit is contained in:
redstrate 2020-06-03 21:54:12 -04:00
parent 633365b055
commit f7372d6473

View file

@ -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")
} }