I’m implementing a “save password” function on enroll, the place I’ve 3 textual content fields: Username, password and ensure password.
My downside is that if I take away “verify password” textual content discipline, a “save password” PopUp comes and I’m able to save the password, however I desire a “verify password” textual content discipline as properly. As quickly as I add a “verify password” textual content discipline it stops displaying me “save password” PopUp.
That is my code:
func setupTextFields() {
// USERNAME FIELD
usernameTextField.delegate = self
usernameTextField.textContentType = .username
usernameTextField.keyboardType = .emailAddress
usernameTextField.autocapitalizationType = .none
usernameTextField.autocorrectionType = .no
usernameTextField.isSecureTextEntry = false
// PASSWORD
passwordTextField.delegate = self
passwordTextField.textContentType = .newPassword
passwordTextField.isSecureTextEntry = true
passwordTextField.autocapitalizationType = .none
passwordTextField.autocorrectionType = .no
//CONFIRM PASSWORD
confirmpasswordTextField.delegate = self
confirmpasswordTextField.textContentType = .newPassword
confirmpassowrdTextField.isSecureEntry = true
confirmpasswordTextField.autocapitalizationType = .none
confirmpasswordTextField.autocorrectionType = .no
}
The strategy I’m calling in ViewDidLoad()
What may very well be the explanation?
