FloatRule
public class FloatRule:RuleFloatRule is a subclass of Rule that defines how check if a value is a floating point value.
- 
                  
                  Initializes a FloatRuleobject to validate that the text of a text field is a floating point number.DeclarationSwift public init(message : String = "This must be a number with or without a decimal")ParametersmessageString of error message. Return ValueAn initialized object, or nil if an object could not be created for some reason that would not result in an exception. 
- 
                  
                  Used to validate text field. DeclarationSwift public func validate(value: String) -> BoolParametersvalueString to checked for validation. Return ValueBoolean value. True if validation is successful; False if validation fails. 
- 
                  
                  Displays error message when text field fails validation. DeclarationSwift public func errorMessage() -> StringReturn ValueString of error message. 
 FloatRule Class Reference
        FloatRule Class Reference