Contents

autocorrectionType

The autocorrection style for the text object.

Declaration

optional var autocorrectionType: UITextAutocorrectionType { get set }

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