DSRequiredTextValidationRule

public struct DSRequiredTextValidationRule : DSValidationRule

A validation rule for requiring that text exists and is not an empty string.

  • Initializes the validation rule.

    Declaration

    Swift

    public init(message: String)

    Parameters

    message

    Error message to display if validator fails