11.2 C
Canberra
Wednesday, December 3, 2025

Saving password in passwords app is NOT working if I’ve password and ensure password textfield Swift IOS 26


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?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles