MinLengthRule
public class MinLengthRule: RuleMinLengthRule is a subclass of Rule that defines how minimum character length is validated.
- 
                  
                  DeclarationSwift public init(){}Return ValueAn initialized MinLengthRuleobject, or nil if an object could not be created for some reason that would not result in an exception.
- 
                  
                  Initializes a MaxLengthRuleobject that is to validate the length of the text of a text field.DeclarationSwift public init(length: Int, message : String = "Must be at least %ld characters long")ParameterslengthMinimum character length. messageString of error message. Return ValueAn initialized MinLengthRuleobject, or nil if an object could not be created for some reason that would not result in an exception.
- 
                  
                  Validates a text field. - parameter value: String to checked for validation. - returns: A boolean value. True if validation is successful; False if validation fails. DeclarationSwift public func validate(value: String) -> BoolParametersvalueString to checked for validation. Return ValueA boolean value. True if validation is successful; False if validation fails. 
- 
                  
                  Displays error message when text field has failed validation. DeclarationSwift public func errorMessage() -> StringReturn ValueString of error message. 
 MinLengthRule Class Reference
        MinLengthRule Class Reference