-
Phone number formats. Each case represents different regular expression string to be used in validation.
See moreDeclaration
Swift
public enum Format -
Initializes a
PhoneNumberRuleobject. Used to validate that a field has a valid phone number.Declaration
Swift
public init(format: PhoneNumberRule.Format, message: String = "")Parameters
messageError message that is displayed if validation fails.
Return Value
An initialized
PhoneNumberRuleobject.
View on GitHub
PhoneNumberRule Class Reference