Fix autocorrection issues on login
This commit is contained in:
parent
4b5a6c6558
commit
8d814608df
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue