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

# webView(_:setStatusBarVisible:)

Sets the visibility of the status bar in a web view’s window.

## Declaration

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

## Parameters

- `sender`: The web view that sent the message.
- `visible`: If doc://com.apple.documentation/documentation/Swift/true, the delegate should display the status bar (if any); if doc://com.apple.documentation/documentation/Swift/false, the delegate should hide the status bar.

## 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)
- [webView(_:setToolbarsVisible:)](webkit/webuidelegate/webview(_:settoolbarsvisible:).md)
- [webViewIsStatusBarVisible(_:)](webkit/webuidelegate/webviewisstatusbarvisible(_:).md)
