hasPassword
A Boolean value that indicates whether the credential has a password.
Declaration
var hasPassword: Bool { get }Discussion
This value is true if the receiver has a password, false otherwise.
This method does not attempt to retrieve the password.
If this credential’s password is stored in the user’s keychain, password may return nil even if this method returns true—getting the password may fail, or the user may refuse access.