PasswordRule

public class PasswordRule : RegexRule

PasswordRule is a subclass of RegexRule that defines how a password is validated.

  • Initializes a PasswordRule object that will validate a text field is a valid password.

    Declaration

    Swift

    public convenience init(message : String = "Must be 8 characters with 1 uppercase")

    Parameters

    message

    String of error message.

    Return Value

    An initialized PasswordRule object, or nil if an object could not be created for some reason that would not result in an exception.