<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInputMode",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITextInputMode"
  },
  "title" : "UITextInputMode"
}
-->

# UITextInputMode

The current text input mode.

```
@MainActor class UITextInputMode
```

## Overview

You can use this object to determine the primary language currently being used for text input.

## Topics

### Getting the current and active text-input modes

[`activeInputModes`](/documentation/UIKit/UITextInputMode/activeInputModes)

The active text-input modes.

[`+  currentInputMode`](/documentation/UIKit/UITextInputMode/currentInputMode)

Returns an instance representing the current text-input mode.

### Getting the primary language

[`primaryLanguage`](/documentation/UIKit/UITextInputMode/primaryLanguage)

The primary language, if any, of the input mode.

### Notifications

[`UITextInputCurrentInputModeDidChangeNotification`](/documentation/UIKit/UITextInputMode/currentInputModeDidChangeNotification)

A notification that posts when the current input mode changes.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Sendable`](/documentation/Swift/Sendable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)