UITextCursorView
An interface you use to draw the insertion point in a piece of text.
Declaration
@MainActor protocol UITextCursorView : UICoordinateSpaceOverview
Adopt the 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 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 CALayer objects or your view’s draw(_:) method to draw and animate the caret.
After adopting this protocol in your custom view, assign your view to the cursorView property of the interaction object you attached to your text view.