Set a PasswordField to secureTextEntry give me a strange behaviour

后端 未结 7 1956
感动是毒
感动是毒 2021-01-07 18:01

I have a passwordField who i set the isSecureTextEntry to true, for hidden the characters. But when I click to this passwordField this show me this

7条回答
  •  生来不讨喜
    2021-01-07 18:33

    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.

提交回复
热议问题