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

# UITextAutocapitalizationType

The autocapitalization behavior of a text-based view.

```
enum UITextAutocapitalizationType
```

## Overview

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

Some keyboard types don’t support autocapitalization. Specifically, if the [`keyboardType`](/documentation/UIKit/UITextInputTraits/keyboardType) property is set to [`UIKeyboardType.numberPad`](/documentation/UIKit/UIKeyboardType/numberPad), [`UIKeyboardType.phonePad`](/documentation/UIKit/UIKeyboardType/phonePad), or [`UIKeyboardType.namePhonePad`](/documentation/UIKit/UIKeyboardType/namePhonePad), the system ignores these constants.

## Topics

### Constants

[`UITextAutocapitalizationTypeNone`](/documentation/UIKit/UITextAutocapitalizationType/none)

Specifies that there is no automatic text capitalization.

[`UITextAutocapitalizationTypeWords`](/documentation/UIKit/UITextAutocapitalizationType/words)

Specifies automatic capitalization of the first letter of each word.

[`UITextAutocapitalizationTypeSentences`](/documentation/UIKit/UITextAutocapitalizationType/sentences)

Specifies automatic capitalization of the first letter of each sentence.

[`UITextAutocapitalizationTypeAllCharacters`](/documentation/UIKit/UITextAutocapitalizationType/allCharacters)

Specifies automatic capitalization of all characters, such as for entry of two-character state abbreviations for the United States.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)