<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WindowToolbarFullScreenVisibility",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI33WindowToolbarFullScreenVisibilityV"
  },
  "title" : "WindowToolbarFullScreenVisibility"
}
-->

# WindowToolbarFullScreenVisibility

The visibility of the window toolbar with respect to full screen mode.

```
struct WindowToolbarFullScreenVisibility
```

## Overview

Use values of this type in conjunction with the
[`windowToolbarFullScreenVisibility(_:)`](/documentation/SwiftUI/View/windowToolbarFullScreenVisibility(_:)) modifier to configure how
the window toolbar displays itself when the window enters full screen mode.

For example, you can specify that the window toolbar should be hidden by
default, and only show when the mouse moves into the area occupied by the
menu bar:

```
struct RootView: View {
    var body: some View {
        ContentView()
            .toolbar {
                ...
            }
            .windowToolbarFullScreenVisibility(.onHover)
    }
}
```

## Topics

### Type Properties

[`static let automatic: WindowToolbarFullScreenVisibility`](/documentation/SwiftUI/WindowToolbarFullScreenVisibility/automatic)

The window toolbar visibility will be defined by the system default
behavior.

[`static let onHover: WindowToolbarFullScreenVisibility`](/documentation/SwiftUI/WindowToolbarFullScreenVisibility/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 visible: WindowToolbarFullScreenVisibility`](/documentation/SwiftUI/WindowToolbarFullScreenVisibility/visible)

Prefer to show window toolbar when the window is in full screen mode.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)