I am implementing a "save password" feature on sign up, where I have 3 text fields: Username, password and confirm password.
My problem is if I remove "confirm password" text field, a "save password" PopUp comes and I am able to save the password, but I want a "confirm password" text field as well. As soon as I add a "confirm password" text field it stops showing me "save password" PopUp.
This 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 method I am calling in ViewDidLoad()
What could be the reason?