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


class UITextInputPasswordRules : NSObject


Creating Password Rules

init(descriptor: String)

Initializes a password rules object with a descriptor.

Getting the Rules

var passwordRulesDescriptor: String

A string representing a set of passworld rules.


Inherits From

See Also

Password Rules

Customizing Password AutoFill Rules

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

var passwordRules: UITextInputPasswordRules?

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software