UITextViewDelegate
The methods for receiving editing-related messages for text view objects.
Declaration
@MainActor protocol UITextViewDelegate : UIScrollViewDelegateOverview
All of the methods in this protocol are optional. You can use them in situations where you might want to adjust the text a user is editing (such as in the case of a spell-checker program) or to modify the intended insertion point.
Topics
Responding to editing notifications
textViewShouldBeginEditing(_:)textViewDidBeginEditing(_:)textViewShouldEndEditing(_:)textViewDidEndEditing(_:)
Responding to text changes
Responding to selection changes
Interacting with text data
textView(_:menuConfigurationFor:defaultMenu:)textView(_:primaryActionFor:defaultAction:)textView(_:textItemMenuWillDisplayFor:animator:)textView(_:textItemMenuWillEndFor:animator:)
Providing a context menu
Customizing an edit menu
Responding to writing tools interactions
textViewWritingToolsWillBegin(_:)textViewWritingToolsDidEnd(_:)textView(_:writingToolsIgnoredRangesInEnclosingRange:)
Inserting a Smart Reply suggestion
Deprecated
textView(_:shouldInteractWith:in:interaction:)textView(_:shouldInteractWith:in:interaction:)textView(_:shouldInteractWith:in:)textView(_:shouldInteractWith:in:)UITextItemInteraction