---
title: "init(textCursorView:textInput:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uitextcursordroppositionanimator/init(textcursorview:textinput:)"
---

# init(textCursorView:textInput:)

Creates an animator for the given text cursor view implementation, and the document object that implements the UITextInput protocol.

## Declaration

```swift
init!(textCursorView cursorView: (any UIView & UITextCursorView)!, textInput: (any UIView & UITextInput)!)
```
