diff --git a/README.md b/README.md index b7b6a9f..b79377c 100644 --- a/README.md +++ b/README.md @@ -115,13 +115,15 @@ For fast validation, you can use `InlineValidator` and provide your validation l ### Validation Types -You can choose between 2 different validation types: `FormValidation(validationType: .immediate)` -and `FormValidation(validationType: .deffered)` +You can choose between 3 different validation types: `FormValidation(validationType: .immediate)` +and `FormValidation(validationType: .deffered)` `FormValidation(validationType: .silent)` 1. **immediate**: the validation is triggered every time the field is changed. An error message will be shown in case the value is invalid. 2. **deferred**: in this case, the validation will be triggered manually only using `FormValidation.triggerValidation()` The error messages will be displayed only after triggering the validation manually. +3. **silent**: In this case, no validation message is displayed, and it's your responsibility to display them + using `FormValidation.validationMessages()`. ### Manual Validation diff --git a/Sources/FormValidation.swift b/Sources/FormValidation.swift index a6429af..a7c1dc7 100644 --- a/Sources/FormValidation.swift +++ b/Sources/FormValidation.swift @@ -114,7 +114,7 @@ public extension FormValidation { /// message will be shown in case the value is invalid. /// 2) deferred: in this case, the validation will be triggered manually only using `FormValidation.triggerValidation()` /// The error messages will be displayed only after triggering the validation manually. - /// 3) silent: In this case, no validation message is displayed and it's your responsibility to display them + /// 3) silent: In this case, no validation message is displayed, and it's your responsibility to display them /// using `FormValidation.validationMessages()`. enum ValidationType { case immediate