diff --git a/MVMCoreUI/Protocols/FormValidationProtocol.swift b/MVMCoreUI/Protocols/FormValidationProtocol.swift index bfdbb0fd..afce4d28 100644 --- a/MVMCoreUI/Protocols/FormValidationProtocol.swift +++ b/MVMCoreUI/Protocols/FormValidationProtocol.swift @@ -10,10 +10,18 @@ import Foundation @objc public protocol FormValidationProtocol: NSObjectProtocol { - @objc optional func formValidatorModel() -> FormValidator? + // Getter method to get the FormValidator form the delegate (Mostly from the parent View Controller) + @objc optional func formValidatorModel() -> FormValidator? + + // Used to check the validity of the field, to enable/disable the primary button. @objc optional func isValidField() -> Bool + + // Based on the isValidField(), the fields which needs to be enabled can call this method @objc optional func enableField(_ enable: Bool) + // The Field name key value pair for sending to server @objc optional func formFieldName() -> String? + + // The Feild value key value paid for sending to server @objc optional func formFieldValue() -> String? }