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 {
Text("info_login")
TextField(LocalizedStringKey("prompt_server"), text: self.$server)
.autocapitalization(.none)
.textFieldStyle(RoundedBorderTextFieldStyle())
.textContentType(.URL)
.disableAutocorrection(true)
TextField(LocalizedStringKey("prompt_username"), text: self.$username)
.autocapitalization(UITextAutocapitalizationType.none)
.textFieldStyle(RoundedBorderTextFieldStyle())
.textContentType(.username)
.disableAutocorrection(true)
SecureField(LocalizedStringKey("prompt_password"), text: self.$password, prompt: nil)
.textFieldStyle(RoundedBorderTextFieldStyle())
.textContentType(UITextContentType.password)