|
|
|
@ -84,6 +84,9 @@ struct UserCreationFormView: View { |
|
|
|
Section { |
|
|
|
Section { |
|
|
|
SecureField("Mot de passe", text: self.$password1) |
|
|
|
SecureField("Mot de passe", text: self.$password1) |
|
|
|
.focused($focusedField, equals: .password) |
|
|
|
.focused($focusedField, equals: .password) |
|
|
|
|
|
|
|
.textContentType(.init(rawValue: "")) |
|
|
|
|
|
|
|
.keyboardType(.asciiCapable) |
|
|
|
|
|
|
|
.autocorrectionDisabled(true) |
|
|
|
.submitLabel(.next) |
|
|
|
.submitLabel(.next) |
|
|
|
.onSubmit(of: .text) { |
|
|
|
.onSubmit(of: .text) { |
|
|
|
focusedField = .confirmPassword |
|
|
|
focusedField = .confirmPassword |
|
|
|
@ -91,6 +94,9 @@ struct UserCreationFormView: View { |
|
|
|
|
|
|
|
|
|
|
|
SecureField("Confirmez le mot de passe", text: self.$password2) |
|
|
|
SecureField("Confirmez le mot de passe", text: self.$password2) |
|
|
|
.focused($focusedField, equals: .confirmPassword) |
|
|
|
.focused($focusedField, equals: .confirmPassword) |
|
|
|
|
|
|
|
.textContentType(.init(rawValue: "")) |
|
|
|
|
|
|
|
.keyboardType(.asciiCapable) |
|
|
|
|
|
|
|
.autocorrectionDisabled(true) |
|
|
|
.submitLabel(.next) |
|
|
|
.submitLabel(.next) |
|
|
|
.onSubmit(of: .text) { |
|
|
|
.onSubmit(of: .text) { |
|
|
|
focusedField = .firstName |
|
|
|
focusedField = .firstName |
|
|
|
|