MinLengthRule

open class MinLengthRule : RuleType

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

Version

1.8.0

Date

08/10/21

Author

Adamas
  • Initialize the rule

    Declaration

    Swift

    public init(minLength: Int, message: String)

    Parameters

    minLength

    The min length of the value.

    message

    sage: The error message to apply.

  • Declaration

    Swift

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