Set a PasswordField to secureTextEntry give me a strange behaviour

I was having same issue while i was running my application on the simulator. Setting autocorrection to no solved my issue. I hope it helps you.

textFieldPassword.autocorrectionType = .no

You are probably using the wrong Team ID in your association file. The Team ID is NOT the one yo usee under "signing Certificate" on XCode. To check your team ID go to your ACCOUNT on https://developer.apple.com/ , under membership. That should solve it. I was using the wrong Team ID and was stuck with the same issue.

With the fix above, just follow this: https://robopress.robotsandpencils.com/strong-passwords-in-ios-12-8ec819b3b99


In our case we had another text field on same screen with content type Email Address, changing that to Username magically solved the problem.


This happens when the system's user doesn't have iCloud Keychain enabled. As will often be the case on the Simulator :)

I ran into this on the simulator and came here. Tried it on my phone (where iCloud Keychain is enabled), and got this instead:

[AutoFill] Cannot show Automatic Strong Passwords for app bundleID: your.bundle.id due to error: Cannot save passwords for this app. Make sure you have set up Associated Domains for your app and AutoFill Passwords is enabled in Settings

So this is Apple's cool AutoFill feature. There are some steps described here that should enable that.

Tags:

Ios

Swift