Protocol
DSTextFieldDelegate
@objc public protocol DSTextFieldDelegate: UITextViewDelegate, UITextFieldDelegate
A delegate that is notified of various events that occur from DSTextField. Extends UITextViewDelegate and UITextFieldDelegate so all of those methods can be defined as well.
Relationships
Conforms To
UITextFieldDelegate
UITextViewDelegate
Optional Requirements
textFieldBecameFirstResponder(_:)
@objc optional func textFieldBecameFirstResponder(_ textField: DSTextField)
textFieldTextDidChange(_:)
@objc optional func textFieldTextDidChange(_ textField: DSTextField)
textFieldDidReturn(_:)
@objc optional func textFieldDidReturn(_ textField: DSTextField)
textFieldDidLayout(_:)
@objc optional func textFieldDidLayout(_ textField: DSTextField)
textFieldShouldUpdateValidationAppearance(_:)
@objc optional func textFieldShouldUpdateValidationAppearance(_ textField: DSTextField) -> Bool