---
title: UITextSelectionDisplayInteractionDelegate
framework: uikit
role: symbol
role_heading: Protocol
path: uikit/uitextselectiondisplayinteractiondelegate
---

# UITextSelectionDisplayInteractionDelegate

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

## Declaration

```swift
@MainActor protocol UITextSelectionDisplayInteractionDelegate : NSObjectProtocol
```

## Overview

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

- [selectionContainerViewBelowText(for:)](uikit/uitextselectiondisplayinteractiondelegate/selectioncontainerviewbelowtext(for:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Managing the drawing view

- [delegate](uikit/uitextselectiondisplayinteraction/delegate.md)
