Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autofill iOS12 alert message user to save password after login to the app first time?

I'm implementing autoFill to my iOS app using this tutorial "iOS 12 Password Tools: Improving User Security and Experience" everything work fine but the iOS is not prompt me with UIAlert to save the password when I login for the first time. I want to ask how I can trigger the UIAlert to prompt the user to save the password to keychain first time?

enter image description here

like image 251
NinjaDeveloper Avatar asked Nov 07 '22 18:11

NinjaDeveloper


1 Answers

you have to clear the text fields and remove the view for View hierarchy.

Note: with Xcode 10 you can use save the username password in the simulator.

override func viewDidDisappear(_ animated: Bool) {
    super.viewDidDisappear(animated)
    view.endEditing(true)

    txtfEmail.text =  nil
    txtfPassword.text = nil
}
like image 106
NinjaDeveloper Avatar answered Nov 11 '22 15:11

NinjaDeveloper