Classes
The following classes are available globally.
-
See moreEmailRule
is a subclass of RegexRule that defines how a email is validated.Declaration
Swift
public class EmailRule: RegexRule
-
See moreFullNameRule
is a subclass of Rule that defines how a full name is validated.Declaration
Swift
public class FullNameRule : Rule
-
See morePasswordRule
is a subclass of RegexRule that defines how a password is validated.Declaration
Swift
public class PasswordRule : RegexRule
-
See moreAlphaNumericRule
is 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 morePhoneNumberRule
is a subclass of Rule that defines how a phone number is validated.Declaration
Swift
public class PhoneNumberRule: RegexRule
-
See moreFloatRule
is a subclass of Rule that defines how check if a value is a floating point value.Declaration
Swift
public class FloatRule:Rule
-
Class that makes
See moreValidator
objects. Should be added as a parameter to ViewController that will display validation fields.Declaration
Swift
public class Validator
-
See moreValidationRule
is a class that creates an object which holds validation info of a text field.Declaration
Swift
public class ValidationRule
-
See moreConfirmationRule
is a subclass of Rule that defines how a text field that has to be equal to another text field is validated.Declaration
Swift
public class ConfirmationRule: Rule
-
See moreIPV4Rule
is a subclass of RegexRule that defines how a IPV4 address validated.Declaration
Swift
public class IPV4Rule: RegexRule
-
The
See moreValidationError
class is used for representing errors of a failed validation. It contains the text field, error label, and error message of a failed validation.Declaration
Swift
public class ValidationError: NSObject
-
See moreRequiredRule
is a subclass of Rule that defines how a required text field is validated.Declaration
Swift
public class RequiredRule: Rule
-
See moreRegexRule
is a subclass of Rule that defines how a regular expression is validated.Declaration
Swift
public class RegexRule : Rule
-
See moreAlphaRule
is 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 moreMinLengthRule
is a subclass of Rule that defines how minimum character length is validated.Declaration
Swift
public class MinLengthRule: Rule
-
See moreExactLengthRule
is a subclass of Rule that is used to make sure a the text of a text field is an exact length.Declaration
Swift
public class ExactLengthRule : Rule