Classes
The following classes are available globally.
-
See moreAlphaNumericRuleis a subclass ofCharacterSetRule. It is used to verify that a field has a valid list of alphanumeric characters.Declaration
Swift
public class AlphaNumericRule : CharacterSetRule -
See moreValidationRuleis the parent of all validation rules.Declaration
Swift
open class ValidationRule<V> -
See moreAlphaRuleis a subclass ofCharacterSetRule. It is used to verify that a field has a valid list of alpha characters.Declaration
Swift
public class AlphaRule : CharacterSetRule -
See moreArrayLengthRuleis a subclass ofValidationRulethat defines how length is validated with min & max limits.Declaration
Swift
public class ArrayLengthRule<V> : ValidationRule<Array<V>> -
See moreArrayRuleis a subclass of ValidationRule that defines how check if all array elements are valid.Declaration
Swift
public class ArrayRule<V> : ValidationRule<Array<V>> -
See moreCharacterSetRuleis a subclass ofValidationRule. It is used to verify that a field has a valid list of characters.Declaration
Swift
open class CharacterSetRule : ValidationRule<String> -
See moreConfirmRuleis a subclass ofValidationRulethat defines how a value that has to be equal to another value is validated.Declaration
Swift
public class ConfirmRule<V> : ValidationRule<V> where V : Equatable -
See moreCoordinateRuleis a subclass of ValidationRule that defines how check if a value is a latitude or longitude value. Value must be array of string or double. longitude should be first element.Declaration
Swift
public class CoordinateRule : ValidationRule<[Double]> -
See moreDateRuleis a subclass ofValidationRulethat means value can’t be nil or blank. Make sure required rule is the first item in rules listDeclaration
Swift
public class DateRule : ValidationRule<String> -
See moreEnumRuleis a subclass ofValidationRulethat defines how a value is validated against mutiple possible values.Declaration
Swift
public class EnumRule<V> : ValidationRule<V> where V : Equatable -
See moreExactLengthRuleis a subclass ofValidationRulethat is used to make sure a the value has an exact length.Declaration
Swift
public class ExactLengthRule : ValidationRule<String> -
See moreFullNameRuleis a subclass ofValidationRulethat defines how a full name is validated.Declaration
Swift
public class FullNameRule : ValidationRule<String> -
See moreISBNRuleis a subclass ofValidationRule. It is used to verify whether a value is a valid ISBN number.Declaration
Swift
public class ISBNRule : ValidationRule<String> -
See moreISO8601DateRuleis a subclass ofValidationRulethat means value can’t be nil or blank. Make sure required rule is the first item in rules listDeclaration
Swift
@available(OSX 10.12, iOS 10.0, watchOS 3.0, *) public class ISO8601DateRule : ValidationRule<String> -
See moreLengthRuleis a subclass ofValidationRulethat defines how length is validated with min & max limits.Declaration
Swift
public class LengthRule : ValidationRule<String> -
See moreMonthRuleis a subclass ofValidationRulethat defines how a credit/debit’s card expiry month field is validatedDeclaration
Swift
public class MonthRule : ValidationRule<String> -
See moreNumericRuleis a subclass ofCharacterSetRule. It is used to verify that a field has a valid list of numeric characters.Declaration
Swift
public class NumericRule : CharacterSetRule -
See moreRangeRuleis a subclass ofValidationRulethat defines how value is validated with min & max limits.Declaration
Swift
public class RangeRule<V> : ValidationRule<V> where V : Comparable, V : CustomStringConvertible -
See moreRegexRuleis a subclass ofValidationRulethat defines how a regular expression is validated.Declaration
Swift
open class RegexRule : ValidationRule<String> -
See moreRequiredRuleis a subclass ofValidationRulethat means value can’t be nil or blank. Make sure required rule is the first item in rules listDeclaration
Swift
public class RequiredRule<V> : ValidationRule<V> -
See moreValidatableRuleis a subclass ofValidationRulethat defines how a object which conforms toValidatableprotocol is validated.Declaration
Swift
public class ValidatableRule<V> : ValidationRule<V> where V : Validatable -
See moreYearExpiryRuleis a subclass ofValidationRulethat defines how a credit/debit card’s expiry year is validatedDeclaration
Swift
public class YearExpiryRule : ValidationRule<String> -
Represents all components required for single basic validation to perform.
See moreDeclaration
Swift
public class BasicValidatable<V> : NamedValidatable -
See moreValidatorrepresents the key validator object.Declaration
Swift
public class Validator
View on GitHub
Classes Reference