<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebUIDelegate/webView(_:setToolbarsVisible:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebUIDelegate(im)webView:setToolbarsVisible:"
  },
  "title" : "webView(_:setToolbarsVisible:)"
}
-->

# webView(_:setToolbarsVisible:)

Sets whether a web view’s toolbars should be visible.

```
optional func webView(_ sender: WebView!, setToolbarsVisible visible: Bool)
```

## Parameters

`sender`

The web view that sent the message.

`visible`

If <doc://com.apple.documentation/documentation/Swift/true>, all toolbars (with the exception of the status bar) are shown; otherwise, all toolbars (with the exception of the status bar) are removed.

## Discussion

No action is taken if you do not implement this method.

---

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)