PhoneValidator
public class PhoneValidator
A class to that the SDK uses to check for valid phone numbers
-
The regex value that is used to check for phone validity
Declaration
Swift
public static let phoneValidationRegex: String
-
A class function that tests whether or not a phone number is valid.
Note
This is a simple regex test using the phoneValidationRegex value A convenience String method .isValidPhoneNumber() is also availableDeclaration
Swift
public static func isValid(phoneNumber: String) -> Bool