---
title: "windowToolbarFullScreenVisibility(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/windowtoolbarfullscreenvisibility(_:)"
---

# windowToolbarFullScreenVisibility(_:)

Configures the visibility of the window toolbar when the window enters full screen mode.

## Declaration

```swift
nonisolated func windowToolbarFullScreenVisibility(_ visibility: WindowToolbarFullScreenVisibility) -> some View

```

## Parameters

- `visibility`: The visibility to use for the window toolbar in full screen mode.

## Discussion

Discussion By default, the window toolbar will show at the top of the display, above the window’s contents. You can use this modifier to override the default behavior. For example, you can specify that the window toolbar should be hidden by default, and only show once the mouse moves into the area occupied by the menu bar: struct RootView: View {     var body: some View {         ContentView()             .toolbar {                 ...             }             .windowToolbarFullScreenVisibility(.onHover)     } }

## See Also

### Configuring window visibility

- [WindowVisibilityToggle](swiftui/windowvisibilitytoggle.md)
- [defaultLaunchBehavior(_:)](swiftui/scene/defaultlaunchbehavior(_:).md)
- [restorationBehavior(_:)](swiftui/scene/restorationbehavior(_:).md)
- [SceneLaunchBehavior](swiftui/scenelaunchbehavior.md)
- [SceneRestorationBehavior](swiftui/scenerestorationbehavior.md)
- [persistentSystemOverlays(_:)](swiftui/scene/persistentsystemoverlays(_:).md)
- [WindowToolbarFullScreenVisibility](swiftui/windowtoolbarfullscreenvisibility.md)
