-
Notifications
You must be signed in to change notification settings - Fork 32
Description
https://github.com/skiptools/skipapp-showcase/blob/main/Sources/Showcase/ToolbarPlayground.swift
In the Toolbar Playground, there's a "Hide Bars" playground.
case .hideBars:
#if os(macOS)
Text("Not supported on macOS")
#else
HideToolbarsPlayground()
.navigationTitle($0.title)
.toolbar(.hidden)
.ignoresSafeArea()
#endifOn iOS, this playground hides the navigation bar, leaving the bottom tab bar visible. On the "Medium Phone API 36" Android emulator, it hides both the navigation bar and the bottom tab bar.
https://developer.apple.com/documentation/swiftui/view/toolbar(_:for:)
Parameters
visibilityThe preferred visibility of the bar.
barsThe bars to update the visibility of or
automaticif empty.
https://developer.apple.com/documentation/swiftui/toolbarplacement/automatic
Depending on the context, this may refer to the navigation bar of an app on iOS, or watchOS, the tab bar of an app on tvOS, or the window toolbar / window titlebar of an app on macOS.