FormatTextFieldDelegate
public protocol FormatTextFieldDelegate: UITextFieldDelegate
FormatTextField delegate that extends the UITextFieldDelegate and adds
functionality for checking if text is valid on change.
-
Notifies the delegate that the text in the text field has changed
Declaration
Swift
func formatTextFieldTextChange(_ textField: FormatTextField, text: String, isValid: Bool)Parameters
textFieldThe text field that had it’s text changed.
textThe new text that is present in the
textFieldminus any formatting characters (such as parenthesis on a phone number).isValidWhether or not the text is valid as per the
inputTypeparameter on theFormatTextField
FormatTextFieldDelegate Protocol Reference