PasswordRule

public class PasswordRule : RegexRule

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

  • Strength of password

    See more

    Declaration

    Swift

    public enum Strength
  • Initializes a PasswordRule object that will validate a field is a valid password.

    Declaration

    Swift

    public init(strength: PasswordRule.Strength = .weak, message: String = "")

    Parameters

    strength
    message

    String of error message.

    Return Value

    An initialized PasswordRule object.