<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextCursorView",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextCursorView"
  },
  "title" : "UITextCursorView"
}
-->

# UITextCursorView

An interface you use to draw the insertion point in a piece of text.

```
@MainActor protocol UITextCursorView : UICoordinateSpace
```

## Overview

Adopt the [`UITextCursorView`](/documentation/UIKit/UITextCursorView) protocol in a custom view you use to draw the insertion caret in one of your text views. Use your custom view in conjunction with a [`UITextSelectionDisplayInteraction`](/documentation/UIKit/UITextSelectionDisplayInteraction) object to apply your custom selection UI to one of your text views. This protocol provides details about when to display the blink animations. Use <doc://com.apple.documentation/documentation/QuartzCore/CALayer> objects or your view’s [`draw(_:)`](/documentation/UIKit/UIView/draw(_:)) method to draw and animate the caret.

After adopting this protocol in your custom view, assign your view to the [`cursorView`](/documentation/UIKit/UITextSelectionDisplayInteraction/cursorView) property of the interaction object you attached to your text view.

## Topics

### Determining the animation state

[`var isBlinking: Bool`](/documentation/UIKit/UITextCursorView/isBlinking)

A Boolean value that determines whether the blink animation is running.

[`func resetBlinkAnimation()`](/documentation/UIKit/UITextCursorView/resetBlinkAnimation())

Resets the blink animation to avoid glitches while someone is typing.

## Relationships

### Conforming Types

[`UIStandardTextCursorView`](/documentation/UIKit/UIStandardTextCursorView)

### Inherits From

[`UICoordinateSpace`](/documentation/UIKit/UICoordinateSpace)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)