Skip to main content
deleted 214 characters in body
Source Link
T3 H40
  • 2.7k
  • 8
  • 44
  • 55

*II am implementing Save passworda "save password" feature on sign up. Where, where I have 3 textfieldstext fields: Username,password password and confirm password. My

My problem is if I remove confirm password textfield save password POP up"confirm password" text field, a "save password" PopUp comes and I am able to save the password, but I want confirm passworda "confirm password" text field as well. As soon as I add confirm password textfielda "confirm password" text field it stops showing me save password popup ?? I have added below"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
    }
This method I am calling in ViewDidLoad()

WhatThe method I am calling in ViewDidLoad() What could be the reason? Any help will be appreciated. Thanks**

*I am implementing Save password feature on sign up. Where I have 3 textfields Username,password and confirm password. My problem is if I remove confirm password textfield save password POP up comes and able to save the password, but I want confirm password text field as well. As soon as I add confirm password textfield it stops showing me save password popup ?? I have added below 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
    }
This method I am calling in ViewDidLoad()

What could be the reason? Any help will be appreciated. Thanks**

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?

edited tags
Link
Neha
  • 21
  • 4

Saving password in passwords app is NOT working if I have 3 password and confirm password textfield Swift IOS 26

added 815 characters in body
Source Link
Neha
  • 21
  • 4

I*I am implementing Save password feature on sign up. Where I have 3 textfields Username,password and confirm password. My problem is if I remove confirm password textfield save password POP up comes and able to save the password, but I want confirm password text field as well. As soon as I add confirm password textfield it stops showing me save password popup ?? I have added below code

    **passwordTextFieldfunc 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.isSecureEntryisSecureTextEntry = true    
    confirmPasswordTextFieldpasswordTextField.autocapitalizationType = .none
    passwordTextField.autocorrectionType = .no
    
    //CONFIRM PASSWORD
    confirmpasswordTextField.delegate = self
    confirmpasswordTextField.textContentType = .newPassword  
    confirmPasswordTextFieldconfirmpassowrdTextField.isSecureEntry = true**true                   
    confirmpasswordTextField.autocapitalizationType = .none
    confirmpasswordTextField.autocorrectionType = .no
    }
This method I am calling in ViewDidLoad()

What could be the reason? Any help will be appreciated. Thanks*Thanks**

I am implementing Save password feature on sign up. Where I have 3 textfields Username,password and confirm password. My problem is if I remove confirm password textfield save password POP up comes and able to save the password, but I want confirm password text field as well. As soon as I add confirm password textfield it stops showing me save password popup ?? I have added below code

    **passwordTextField.textContentType = .newPassword
    passwordTextField.isSecureEntry = true
    confirmPasswordTextField.textContentType = .newPassword
    confirmPasswordTextField.isSecureEntry = true**

What could be the reason? Any help will be appreciated. Thanks*

*I am implementing Save password feature on sign up. Where I have 3 textfields Username,password and confirm password. My problem is if I remove confirm password textfield save password POP up comes and able to save the password, but I want confirm password text field as well. As soon as I add confirm password textfield it stops showing me save password popup ?? I have added below 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
    }
This method I am calling in ViewDidLoad()

What could be the reason? Any help will be appreciated. Thanks**

Source Link
Neha
  • 21
  • 4
Loading