<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/autocorrectionDisabled(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE22autocorrectionDisabledyQrSbF"
  },
  "title" : "autocorrectionDisabled(_:)"
}
-->

# autocorrectionDisabled(_:)

Sets whether to disable autocorrection for this view.

```
@export(implementation) nonisolated func autocorrectionDisabled(_ disable: Bool = true) -> some View
```

## Parameters

`disable`

A Boolean value that indicates whether
autocorrection is disabled for this view. The default value is `true`.

## Discussion

Use this method when the effect of autocorrection would
make it more difficult for the user to input information. The entry of
proper names and street addresses are examples where autocorrection can
negatively affect the user’s ability complete a data entry task.

The example below configures a [`TextField`](/documentation/SwiftUI/TextField) with the default
keyboard. Disabling autocorrection allows the user to enter arbitrary
text without the autocorrection system offering suggestions or
attempting to override their input.

```
TextField("1234 Main St.", text: $address)
    .keyboardType(.default)
    .autocorrectionDisabled(true)
```

---

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)