Contents

delegate

The text field’s delegate.

Declaration

weak var delegate: (any UITextFieldDelegate)? { get set }

Discussion

A text field delegate responds to editing-related messages from the text field. You can use the delegate to respond to the text entered by the user and to some special commands, such as when the user taps Return.

See Also

Validating and handling edits