EmailValidator

public class EmailValidator

A class to that the SDK uses to check for valid emails

  • The regex value that is used to check for email validitiy

    Declaration

    Swift

    public static let EMAIL_VALIDATION_REGEX: String
  • A class function that tests whether or not a email is valid. Emails with dashs in the domain are not accepted.

    Note

    This is a simple regex test using the EMAIL_VALIDATION_REGEX value A convenience String method .isValidEmail() is also available

    Declaration

    Swift

    public static func isValid(email: String) -> Bool