MaxLengthRule

open class MaxLengthRule : RuleType

MaxLengthRule presents the min length requirement that a text field value should follow.

Version

1.8.0

Date

13/09/22

Author

Adamas
  • Initialize the rule

    Declaration

    Swift

    public init(maxLength: Int, message: String)

    Parameters

    maxLength

    The max length of the value.

    message

    sage: The error message to apply.

  • Declaration

    Swift

    public func isValid(value: String?) -> String?