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