---
title: textInput
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextselectiondisplayinteraction/textinput
---

# textInput

The text input object that manages the selection.

## Declaration

```swift
weak var textInput: (any UITextInput)? { get }
```

## Mentioned in

Adopting system selection UI in custom text views

## Discussion

Discussion Use this property to refer to the text input view that manages the text selection. You specify this view when you create the UITextSelectionDisplayInteraction object.
