MinLengthRule
open class MinLengthRule : RuleType
MinLengthRule presents the min length requirement that a text field value should follow.
Version
1.8.0Date
08/10/21-
Initialize the rule
Declaration
Swift
public init(minLength: Int, message: String)Parameters
minLengthThe min length of the value.
messagesage: The error message to apply.
-
Declaration
Swift
public func isValid(value: String?) -> String?
MinLengthRule Class Reference