DSEmailAddressValidationRule

public struct DSEmailAddressValidationRule : DSValidationRule

A validation rule for email addresses. Returns an error when a proper email address has not been formed. Does not verify that an email address exists, only that it’s legal.

  • Initializes the validation rule.

    Declaration

    Swift

    public init(message: String)

    Parameters

    message

    Error message to display if validator fails