---
title: autocorrectionType
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinputtraits/autocorrectiontype
---

# autocorrectionType

The autocorrection style for the text object.

## Declaration

```swift
optional var autocorrectionType: UITextAutocorrectionType { get set }
```

## Discussion

Discussion This property determines whether autocorrection is enabled or disabled during typing. With autocorrection enabled, the text object tracks unknown words and suggests a more suitable replacement candidate to the user, replacing the typed text automatically unless the user explicitly overrides the action. The default value for this property is UITextAutocorrectionType.default, which for most input methods results in autocorrection being enabled.

## See Also

### Managing spelling and autocorrection

- [autocapitalizationType](uikit/uitextinputtraits/autocapitalizationtype.md)
- [UITextAutocapitalizationType](uikit/uitextautocapitalizationtype.md)
- [UITextAutocorrectionType](uikit/uitextautocorrectiontype.md)
- [spellCheckingType](uikit/uitextinputtraits/spellcheckingtype.md)
- [UITextSpellCheckingType](uikit/uitextspellcheckingtype.md)
- [inlinePredictionType](uikit/uitextinputtraits/inlinepredictiontype.md)
- [UITextInlinePredictionType](uikit/uitextinlinepredictiontype.md)
