---
title: textInputContextIdentifier
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiresponder/textinputcontextidentifier
---

# textInputContextIdentifier

An identifier signifying that the responder should preserve its text input mode information.

## Declaration

```swift
var textInputContextIdentifier: String? { get }
```

## Discussion

Discussion If you redefine this property and return a string value, UIKit tracks the current text input mode for the responder. While in tracking mode, any programmatic changes you make to the text input mode are remembered and restored whenever the responder becomes active.

## See Also

### Managing the text input mode

- [textInputMode](uikit/uiresponder/textinputmode.md)
- [clearTextInputContextIdentifier(_:)](uikit/uiresponder/cleartextinputcontextidentifier(_:).md)
- [inputAssistantItem](uikit/uiresponder/inputassistantitem.md)
