DSMinMaxValidationRule
public struct DSMinMaxValidationRule : DSValidationRule
A validation rule for requiring that text is a number and is between a min and max value. (Inclusive.)
-
Initializes the validation rule.
Declaration
Swift
public init(min: Int, max: Int, message: String)Parameters
minThe smallest number allowed for the field. (Inclusive)
maxThe largest number allowed for the field. (Inclusive)
messageError message to display if validator fails. Should include two %@ formatters for min and max.
DSMinMaxValidationRule Structure Reference