EmailRule

public class EmailRule: RegexRule

EmailRule is a subclass of RegexRule that defines how a email is validated.

  • Initializes an EmailRule object to validate an email text field.

    Declaration

    Swift

    public convenience init(message : String = "Must be a valid email address")

    Parameters

    message

    String of error message.

    Return Value

    An initialized object, or nil if an object could not be created for some reason that would not result in an exception.