I've added 3 UITextFields
to create a new account by entering a username in email address format, a new password and a password confirmation. As suggested in Enabling Password AutoFill on a Text Input View. I have configured the username field like this
userTextField.textContentType = .username
userTextField.keyboardType = .emailAddress
and the new password fields like this
newPasswordTextField.textContentType = .newPassword
confirmPasswordTextField.textContentType = .newPassword
Now, when the users enters an email address as username the newPasswordTextField
is pre-filled with a suggestion for a strong password (as expected), but the confirmPasswordTextField
isn't filled with the same suggested password.
When the user directly taps into the newPasswordTextField
without entering a username before both newPasswordTextField
and confirmPasswordTextField
are pre-filled with the same suggested password (also as suggested).
How can i combine this both situations that after the user enters a username both password fields will be pre-filled with the same password?