DSPhoneNumberValidationRule

public struct DSPhoneNumberValidationRule : DSValidationRule

A validation rule for requiring text to be a phone number of format XXX-XXX-XXXX.

  • Initializes the validation rule.

    Declaration

    Swift

    public init(message: String)

    Parameters

    message

    Error message to display if validator fails