<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariSettings/checkAutoFillUserNamesAndPasswordsEnabled(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSafariSettings(cm)checkAutoFillUserNamesAndPasswordsEnabledWithCompletionHandler:"
  },
  "title" : "checkAutoFillUserNamesAndPasswordsEnabled(completionHandler:)"
}
-->

# checkAutoFillUserNamesAndPasswordsEnabled(completionHandler:)

Query the value of the Safari settings toggle for AutoFill > User names and passwords

```
class func checkAutoFillUserNamesAndPasswordsEnabled(completionHandler: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```
class var isAutoFillUserNamesAndPasswordsEnabled: Bool { get async throws }
```

## Parameters

`completionHandler`

The block the system calls after the operation complets, with a boolean parameter representing the toggle value.

- isEnabled: A boolean value representing the current value of the toggle.
- error: An SFSafariSettingsError if any occurred. If non-nil, the value of `isEnabled`

---

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)