FormValidatorSwift v2.0.0 Release Notes

Release Date: 2017-02-06 // about 3 years ago
  • 💥 Breaking

    • ⚡️ Updated 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.

    ➕ Added

    • ➕ Added Configuration, ConfigurableCondition, ConfigurableValidator protocols. Updated existing conditions and validators to take advantage of new protocols.
    • ➕ Added macOS support.

    ⚡️ Updated

    • 0️⃣ NumericCondition now supports ASCII only (as opposed to allowing any Unicode numeric characters) as an option. The default remains allowing Unicode characters.
    • The shouldAllowViolation property on validator controls now works as expected.