This commit is contained in:
Suresh, Kamlesh 2019-04-04 11:51:45 -04:00
parent 8d3a6852cd
commit ba3dec3043

View File

@ -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?
}