<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextAutocorrectionType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UITextAutocorrectionType"
  },
  "title" : "UITextAutocorrectionType"
}
-->

# UITextAutocorrectionType

The autocorrection behavior of a text-based view.

```
enum UITextAutocorrectionType
```

## Overview

Use these constants with the [`autocorrectionType`](/documentation/UIKit/UITextInputTraits/autocorrectionType) property. If the script system doesn’t support inline autocorrection, the keyboard input method ignores these constants.

## Topics

### Constants

[`UITextAutocorrectionTypeDefault`](/documentation/UIKit/UITextAutocorrectionType/default)

Specifies an appropriate autocorrection behavior for the current script system.

[`UITextAutocorrectionTypeNo`](/documentation/UIKit/UITextAutocorrectionType/no)

Disables autocorrection behavior.

[`UITextAutocorrectionTypeYes`](/documentation/UIKit/UITextAutocorrectionType/yes)

Enables autocorrection behavior.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)