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

# webView(_:setStatusBarVisible:)

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

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

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)