---
title: highlightView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextselectiondisplayinteraction/highlightview
---

# highlightView

The view that draws the selection highlight behind the rendered text.

## Declaration

```swift
var highlightView: any UIView & UITextSelectionHighlightView { get set }
```

## Mentioned in

Adopting system selection UI in custom text views

## Discussion

Discussion When you install the interaction on your text input view, the system installs a view in this property that provides the standard system highlight appearance for selections. You can replace this view with a custom one you provide to change the appearance of selections.

## See Also

### Getting the system selection views

- [handleViews](uikit/uitextselectiondisplayinteraction/handleviews.md)
- [cursorView](uikit/uitextselectiondisplayinteraction/cursorview.md)
