WindowToolbarFullScreenVisibility
The visibility of the window toolbar with respect to full screen mode.
Declaration
struct WindowToolbarFullScreenVisibilityOverview
Use values of this type in conjunction with the 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)
}
}