ValidationStrategy
public enum ValidationStrategy
Declares the most common strategies for validation
-
Every changes triggers a validation process for the current field
Declaration
Swift
case duringEdit -
If a field’s status changed from .editing to .didEdited than this field will be validated
Declaration
Swift
case endOfField -
If a field’s status changed from .editing to .didEdited and none of the registered fields is in .editing state than the form will be validated
Declaration
Swift
case endOfForm -
Validation process never triggered
Declaration
Swift
case never -
We can implement a custom form validator if necessary
Declaration
Swift
case custom(FormValidatorProtocol)
ValidationStrategy Enumeration Reference