From 5a5785f6d19a02568a0bbdfbdd28da27028962ae Mon Sep 17 00:00:00 2001
From: Aaron McTavish
@@ -256,7 +257,7 @@
Swift
-open class ValidatorTextField: UITextField, ValidatorControl
+ open class ValidatorTextField : UITextField, ValidatorControl
Swift
-open class ValidatorTextView: UITextView, ValidatorControl
+ open class ValidatorTextView : UITextView, ValidatorControl
@@ -229,7 +229,7 @@
open class ValidatorTextField: UITextField, ValidatorControl
+ open class ValidatorTextField : UITextField, ValidatorControl
Swift
-open var shouldAllowViolation = false
+ open var shouldAllowViolation: Bool
Swift
-open var validateOnFocusLossOnly = false
+ open var validateOnFocusLossOnly: Bool
-
+
- validatorDelegate
+ validatorDelegate
Validator delegate for the text field.
See also
-setValidatorDelegate(_:)
to set the validator delegate.
+ setValidatorDelegate(_:)
to set the validator delegate.
Swift
-open weak var validatorDelegate: ValidatorControlDelegate?
+ open var validatorDelegate: ValidatorControlDelegate? { get }
Swift
-open var validatableText: String?
+ open var validatableText: String? { get }
-
+
- init(validator:)
+ init(validator:)
+
+
+ deinit
+
+ Undocumented
+ +Swift
+deinit
+
+ Sets the validatorDelegate
for the text field. This allows custom responses to both UITextFieldDelegate
callbacks as well as those from ValidatorControlDelegate
.
Sets the validatorDelegate
for the text field. This allows custom responses to both UITextFieldDelegate
callbacks as well as those from ValidatorControlDelegate
.
@@ -238,9 +239,9 @@
-
-
- Validatable
+
+
+ Condition
Undocumented
+A Condition is the smallest sub element of the validation framework. + It tells how a string must be structured or wat is has to contain or not. + Validators are for storing those conditions and checking + for violations of every condition.
- See more +Conditions are recommended working with regular expressions but can also contain + their custom checking code for detecting violations in the string to check.
+ +By returning a localized string in method localizedViolationString
the
+ user can be informed in a convenient way what went wrong.
Swift
-public protocol Validatable
+ public protocol Condition : CustomStringConvertible
-
-
- ConfigurableValidator
+
+
+ ConfigurableCondition
A special type of Validator
that allows configuration.
A special type of Condition
that allows configuration.
-
-
- Validator
+
+
+ ConfigurableValidator
Validator
is a holder for conditions of type Condition
.
-The validator checks for violation of each condition. Returned will be a collection of
-violated conditions or nil
if the string to check is correct or no condition was added.
A special type of Validator
that allows configuration.
-
-
- ConfigurableCondition
+
+
+ Configuration
A special type of Condition
that allows configuration.
A configuration for a Condition
.
-
-
- ValidatorControlDelegate
+
+
+ Form
Undocumented
+A form to assist in validating ValidatorControl
objects’ current states.
Swift
-public protocol ValidatorControlDelegate: class
+ public protocol Form
-
-
- ValidatorControl
+
+
+ Validatable
-
-
- Configuration
+
+
+ Validator
A configuration for a Condition
.
Validator
is a holder for conditions of type Condition
.
+The validator checks for violation of each condition. Returned will be a collection of
+violated conditions or nil
if the string to check is correct or no condition was added.
Swift
-public protocol Configuration
+ public protocol Validator
-
-
- Condition
+
+
+ ValidatorControlDelegate
A Condition is the smallest sub element of the validation framework. - It tells how a string must be structured or wat is has to contain or not. - Validators are for storing those conditions and checking - for violations of every condition.
- -Conditions are recommended working with regular expressions but can also contain - their custom checking code for detecting violations in the string to check.
- -By returning a localized string in method localizedViolationString
the
- user can be informed in a convenient way what went wrong.
Undocumented
- See more + See moreSwift
-public protocol Condition: CustomStringConvertible
+ public protocol ValidatorControlDelegate : AnyObject
-
-
- Form
+
+
+ ValidatorControl
A form to assist in validating ValidatorControl
objects’ current states.
Undocumented
- See more + See more@@ -238,9 +239,9 @@
-
-
- Validatable
+
+
+ Condition
Undocumented
+A Condition is the smallest sub element of the validation framework. + It tells how a string must be structured or wat is has to contain or not. + Validators are for storing those conditions and checking + for violations of every condition.
- See more +Conditions are recommended working with regular expressions but can also contain + their custom checking code for detecting violations in the string to check.
+ +By returning a localized string in method localizedViolationString
the
+ user can be informed in a convenient way what went wrong.
Swift
-public protocol Validatable
+ public protocol Condition : CustomStringConvertible
-
-
- ConfigurableValidator
+
+
+ ConfigurableCondition
A special type of Validator
that allows configuration.
A special type of Condition
that allows configuration.
-
-
- Validator
+
+
+ ConfigurableValidator
Validator
is a holder for conditions of type Condition
.
-The validator checks for violation of each condition. Returned will be a collection of
-violated conditions or nil
if the string to check is correct or no condition was added.
A special type of Validator
that allows configuration.
-
-
- ConfigurableCondition
+
+
+ Configuration
A special type of Condition
that allows configuration.
A configuration for a Condition
.
-
-
- ValidatorControlDelegate
+
+
+ Form
Undocumented
+A form to assist in validating ValidatorControl
objects’ current states.
Swift
-public protocol ValidatorControlDelegate: class
+ public protocol Form
-
-
- ValidatorControl
+
+
+ Validatable
-
-
- Configuration
+
+
+ Validator
A configuration for a Condition
.
Validator
is a holder for conditions of type Condition
.
+The validator checks for violation of each condition. Returned will be a collection of
+violated conditions or nil
if the string to check is correct or no condition was added.
Swift
-public protocol Configuration
+ public protocol Validator
-
-
- Condition
+
+
+ ValidatorControlDelegate
A Condition is the smallest sub element of the validation framework. - It tells how a string must be structured or wat is has to contain or not. - Validators are for storing those conditions and checking - for violations of every condition.
- -Conditions are recommended working with regular expressions but can also contain - their custom checking code for detecting violations in the string to check.
- -By returning a localized string in method localizedViolationString
the
- user can be informed in a convenient way what went wrong.
Undocumented
- See more + See moreSwift
-public protocol Condition: CustomStringConvertible
+ public protocol ValidatorControlDelegate : AnyObject
-
-
- Form
+
+
+ ValidatorControl
A form to assist in validating ValidatorControl
objects’ current states.
Undocumented
- See more + See more