Contents

delegate

The text view’s delegate.

Declaration

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

Discussion

A text view delegate responds to editing-related messages from the text view. You can use the delegate to track changes to the text itself and to the current selection.

For information about the methods implemented by the delegate, see UITextViewDelegate.

See Also

Responding to text view changes