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 {
|
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)
|
||||||
|
|
Loading…
Reference in a new issue