Skip to content
Snippets Groups Projects
Commit 46b25b7d authored by Oliver Wiese's avatar Oliver Wiese
Browse files

no autocapitialziation for any auth. field

parent d89fcd3b
No related branches found
No related tags found
2 merge requests!59Onboarding screens swift ui merge dev,!58Onboarding screens swift ui merge dev
...@@ -209,6 +209,7 @@ struct AccountSetupView: View { ...@@ -209,6 +209,7 @@ struct AccountSetupView: View {
.clipShape(RoundedRectangle(cornerRadius: 8)) .clipShape(RoundedRectangle(cornerRadius: 8))
.shadow(radius: 8) .shadow(radius: 8)
.keyboardType(.default) .keyboardType(.default)
.autocapitalization(.none)
} else { } else {
TextField(label, text: $password) TextField(label, text: $password)
.padding(EdgeInsets(top: 8, leading:10, bottom: 8, trailing: 0)) .padding(EdgeInsets(top: 8, leading:10, bottom: 8, trailing: 0))
...@@ -217,6 +218,7 @@ struct AccountSetupView: View { ...@@ -217,6 +218,7 @@ struct AccountSetupView: View {
.clipShape(RoundedRectangle(cornerRadius: 8)) .clipShape(RoundedRectangle(cornerRadius: 8))
.shadow(radius: 8) .shadow(radius: 8)
.keyboardType(.default) .keyboardType(.default)
.autocapitalization(.none)
} }
Button(action: { Button(action: {
self.securePasswordInput.toggle() self.securePasswordInput.toggle()
...@@ -249,6 +251,7 @@ struct AccountSetupView: View { ...@@ -249,6 +251,7 @@ struct AccountSetupView: View {
func inputField(label: String, defaultValue: String, variable: Binding<String>, keyboardType: UIKeyboardType) -> some View { func inputField(label: String, defaultValue: String, variable: Binding<String>, keyboardType: UIKeyboardType) -> some View {
TextField(label, text: variable) TextField(label, text: variable)
.keyboardType(keyboardType) .keyboardType(keyboardType)
.autocapitalization(.none)
.padding(EdgeInsets(top: 8, leading:10, bottom: 8, trailing: 10)) .padding(EdgeInsets(top: 8, leading:10, bottom: 8, trailing: 10))
.background(Color.white) .background(Color.white)
.foregroundColor(Color.black) .foregroundColor(Color.black)
...@@ -269,6 +272,8 @@ struct AccountSetupView: View { ...@@ -269,6 +272,8 @@ struct AccountSetupView: View {
.clipShape(RoundedRectangle(cornerRadius: 8)) .clipShape(RoundedRectangle(cornerRadius: 8))
.shadow(radius: 8) .shadow(radius: 8)
.keyboardType(keyboardType) .keyboardType(keyboardType)
.autocapitalization(.none)
} }
.padding(bigspace) .padding(bigspace)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment