<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WindowToolbarFullScreenVisibility/onHover",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI33WindowToolbarFullScreenVisibilityV7onHoverACvpZ"
  },
  "title" : "onHover"
}
-->

# onHover

Hide the window toolbar in full screen mode by default. It will reveal
itself when the mouse moves into the area occupied by the menu bar.

```
static let onHover: WindowToolbarFullScreenVisibility
```

## Discussion

This has no effect if the toolbar is completely hidden, i.e. setting
the visibility to `hidden` for `windowToolbar` placements using
[`toolbarVisibility(_:for:)`](/documentation/SwiftUI/View/toolbarVisibility(_:for:)) will cause the toolbar to remain
completely hidden, even in full screen.

---

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)