Instance Property

passwordRules

Requirements for passwords for your service to ensure iOS can generate compatible passwords for users.

Declaration

@NSCopying optional var passwordRules: UITextInputPasswordRules? { get set }

Discussion

It only works when isSecureTextEntry is YES. You do not need to use this property if the passwords that iOS generates are already compatible with your service. You can learn more about the syntax for these rules in Customizing Password AutoFill Rules.

See Also

Password Rules

Customizing Password AutoFill Rules

Modify the strong password rules for your app by adding your own restrictions.

class UITextInputPasswordRules

A class that represents password rules for a text input field.