Contents

UITextSelectionDisplayInteractionDelegate

An object you use to customize the presentation of text selections in your interface.

Declaration

@MainActor protocol UITextSelectionDisplayInteractionDelegate : NSObjectProtocol

Overview

Adopt the UITextSelectionDisplayInteractionDelegate protocol in a custom type that you use to customize the selection UI implementation. The UITextSelectionDisplayInteraction object manages separate views to draw the text selection, the handles for the selected text range, and the insertion-point caret. Use this protocol if you use a custom view to manage these views instead of the text input view. For example, provide a container view if you draw the selection UI behind your text view’s content.

Topics

Providing a container view

See Also

Managing the drawing view