MaxLengthRule
open class MaxLengthRule : RuleType
MaxLengthRule presents the min length requirement that a text field value should follow.
Version
1.8.0Date
13/09/22-
Initialize the rule
Declaration
Swift
public init(maxLength: Int, message: String)Parameters
maxLengthThe max length of the value.
messagesage: The error message to apply.
-
Declaration
Swift
public func isValid(value: String?) -> String?
MaxLengthRule Class Reference