---
title: cursorView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextselectiondisplayinteraction/cursorview
---

# cursorView

The view that draws the caret at the text insertion point.

## Declaration

```swift
var cursorView: any UIView & UITextCursorView { 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 appearance for the caret at the insertion point. You can replace this view with a custom one you provide to change the appearance of the caret.

## See Also

### Getting the system selection views

- [highlightView](uikit/uitextselectiondisplayinteraction/highlightview.md)
- [handleViews](uikit/uitextselectiondisplayinteraction/handleviews.md)
