EnterpriseDS Documentation

Protocol DSText​Field​Delegate

@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.

DSTextFieldDelegate DSTextFieldDelegate UITextFieldDelegate UITextFieldDelegate DSTextFieldDelegate->UITextFieldDelegate UITextViewDelegate UITextViewDelegate DSTextFieldDelegate->UITextViewDelegate DSTextFieldWrapper.Coordinator DSTextFieldWrapper.Coordinator DSTextFieldWrapper.Coordinator->DSTextFieldDelegate

Conforms To

UITextFieldDelegate
UITextViewDelegate

Optional Requirements

text​Field​Became​First​Responder(_:​)

@objc optional func textFieldBecameFirstResponder(_ textField: DSTextField) 

text​Field​Text​Did​Change(_:​)

@objc optional func textFieldTextDidChange(_ textField: DSTextField) 

text​Field​Did​Return(_:​)

@objc optional func textFieldDidReturn(_ textField: DSTextField) 

text​Field​Did​Layout(_:​)

@objc optional func textFieldDidLayout(_ textField: DSTextField) 

text​Field​Should​Update​Validation​Appearance(_:​)

@objc optional func textFieldShouldUpdateValidationAppearance(_ textField: DSTextField) -> Bool