---
title: "webView(_:setToolbarsVisible:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webuidelegate/webview(_:settoolbarsvisible:)"
---

# webView(_:setToolbarsVisible:)

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

## Declaration

```swift
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

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

## See Also

### Managing Toolbars and the Status Bar

- [webViewAreToolbarsVisible(_:)](webkit/webuidelegate/webviewaretoolbarsvisible(_:).md)
- [webViewIsStatusBarVisible(_:)](webkit/webuidelegate/webviewisstatusbarvisible(_:).md)
- [webView(_:setStatusBarVisible:)](webkit/webuidelegate/webview(_:setstatusbarvisible:).md)
