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 validitiy
Declaration
Swift
public static let PHONE_VALIDATION_REGEX: String
-
A class function that tests whether or not a phone number is valid.
Note
This is a simple regex test using the PHONE_VALIDATION_REGEX value A convenience String method .isValidPhoneNumber() is also availableDeclaration
Swift
public static func isValid(phoneNumber: String) -> Bool