<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedSettings",
  "identifier" : "/documentation/ManagedSettings/SafariSettings/denyAutoFill-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Managed Settings"
    ],
    "preciseIdentifier" : "s:15ManagedSettings06SafariB0V12denyAutoFillSbSgvp"
  },
  "title" : "denyAutoFill"
}
-->

# denyAutoFill

A Boolean value that indicates whether Safari’s AutoFill feature is active.

```
var denyAutoFill: Bool? { get set }
```

## Discussion

Set this value to `true` to prevent Safari from automatically entering passwords, contact information, and credit cards in form fields.
This value also denies Safari permission to use the keychain to AutoFill stored credentials.
If your app doesn’t configure this setting, the value is `nil`.

---

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)