<!--
{
  "availability" : [
    "macOS: 10.12.4 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariToolbarItem/setEnabled(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSafariToolbarItem(im)setEnabled:"
  },
  "title" : "setEnabled(_:)"
}
-->

# setEnabled(_:)

Sets whether the toolbar item is enabled.

```
func setEnabled(_ enabled: Bool)
```

## Parameters

`enabled`

`true` to enable the toolbar item; otherwise `false`.

---

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)