A framework to validate inputs of text fields and text views in a convenient way.
OptionalValidator
.
weak
on property in ValidatorControl
protocol as it is now deprecated in the latest version of Swift. See: https://github.com/apple/swift-evolution/pull/707
PostcodeCountries
enum cases to begin with lower case letter.
AlphabeticCondition
and AlphanumericCondition
to allow unicode characters by default (NumericCondition
already allowed unicode characters by default).
AlphabeticCondition
, AlphanumericCondition
, CreditCardCondition
, NumericCondition
, PasswordStrengthCondition
, PostcodeCondition
, and RangeCondition
now store their configurations in a configuration
property rather than as top-level properties of the condition's instance. As an example, for an instance of AlphabeticCondition
the check condition.allowsWhitespace == true
would become condition.configuration.allowsWhitespace == true
.
Configuration
, ConfigurableCondition
, ConfigurableValidator
protocols. Updated existing conditions and validators to take advantage of new protocols.
NumericCondition
now supports ASCII only (as opposed to allowing any Unicode numeric characters) as an option. The default remains allowing Unicode characters.
shouldAllowViolation
property on validator controls now works as expected.
AlphabeticCondition
and AlphanumericCondition
.
validatorDelegate
.
Initial release of FormValidatorSwift
.