---
title: textInputMode
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiresponder/textinputmode
---

# textInputMode

The text input mode for this responder object.

## Declaration

```swift
var textInputMode: UITextInputMode? { get }
```

## Discussion

Discussion The text input mode identifies the language and keyboard displayed when this responder is active. For responders, the system normally displays a keyboard that’s based on the user’s language preferences. You can redefine this property and use it to return a different text input mode in cases where you want a responder to use a specific keyboard. The user can still change the keyboard while the responder is active, but switching away to another responder and then back restores the keyboard you specified.

## See Also

### Managing the text input mode

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