change protocol to any
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
b754b476a6
commit
68083819be
@ -268,10 +268,10 @@ import VDS
|
||||
|
||||
if previousValidity && !isValid {
|
||||
showError = true
|
||||
//observingTextFieldDelegate?.isValid?(textfield: self)
|
||||
observingTextFieldDelegate?.isValid?(textfield: self)
|
||||
} else if (!previousValidity && isValid) {
|
||||
showError = false
|
||||
//observingTextFieldDelegate?.isInvalid?(textfield: self)
|
||||
observingTextFieldDelegate?.isInvalid?(textfield: self)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -11,9 +11,9 @@ import UIKit
|
||||
|
||||
@objc public protocol ObservingTextFieldDelegate {
|
||||
/// Called when the entered text becomes valid based on the validation block
|
||||
@objc optional func isValid(textfield: TextEntryField?)
|
||||
@objc optional func isValid(textfield: Any?)
|
||||
/// Called when the entered text becomes invalid based on the validation block
|
||||
@objc optional func isInvalid(textfield: TextEntryField?)
|
||||
@objc optional func isInvalid(textfield: Any?)
|
||||
/// Dismisses the keyboard.
|
||||
@objc optional func dismissFieldInput(_ sender: Any?)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user