Fix autocorrection issues on login

This commit is contained in:
William Brawner 2022-01-06 18:25:07 -06:00
parent 4b5a6c6558
commit 8d814608df

View file

@ -32,12 +32,15 @@ struct LoginView: View {
VStack { VStack {
Text("info_login") Text("info_login")
TextField(LocalizedStringKey("prompt_server"), text: self.$server) TextField(LocalizedStringKey("prompt_server"), text: self.$server)
.autocapitalization(.none)
.textFieldStyle(RoundedBorderTextFieldStyle()) .textFieldStyle(RoundedBorderTextFieldStyle())
.textContentType(.URL) .textContentType(.URL)
.disableAutocorrection(true)
TextField(LocalizedStringKey("prompt_username"), text: self.$username) TextField(LocalizedStringKey("prompt_username"), text: self.$username)
.autocapitalization(UITextAutocapitalizationType.none) .autocapitalization(UITextAutocapitalizationType.none)
.textFieldStyle(RoundedBorderTextFieldStyle()) .textFieldStyle(RoundedBorderTextFieldStyle())
.textContentType(.username) .textContentType(.username)
.disableAutocorrection(true)
SecureField(LocalizedStringKey("prompt_password"), text: self.$password, prompt: nil) SecureField(LocalizedStringKey("prompt_password"), text: self.$password, prompt: nil)
.textFieldStyle(RoundedBorderTextFieldStyle()) .textFieldStyle(RoundedBorderTextFieldStyle())
.textContentType(UITextContentType.password) .textContentType(UITextContentType.password)