ToolbarPlacement
The placement of a toolbar.
Declaration
type ToolbarPlacement =
| 'automatic'
| 'bottomBar'
| 'navigationBar'
| 'statusBar'
| 'tabBar';struct ToolbarPlacementPass a literal, or build one with SwiftUI.ToolbarPlacement from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ToolbarPlacement.automaticThe primary toolbar.
'bottomBar'SwiftUI.ToolbarPlacement.bottomBarThe bottom toolbar of an app.
'statusBar'SwiftUI.ToolbarPlacement.statusBarThe system status bar.
'tabBar'SwiftUI.ToolbarPlacement.tabBarThe tab bar of an app.
Overview
Use this type in conjunction with modifiers like
View.toolbarBackground(_:for:) and View.toolbarVisibility(_:for:) to
customize the appearance of different bars managed by SwiftUI. Not all bars
support all types of customizations.
See ToolbarItemPlacement to learn about the different regions of these
toolbars that you can place your own controls into.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
- toolbarBackgroundSpecifies the preferred shape style of the background of a bar managed by SwiftUI.
- toolbarBackgroundVisibilitySpecifies the preferred visibility of backgrounds on a bar managed by SwiftUI.
- toolbarColorSchemeSpecifies the preferred color scheme of a bar managed by SwiftUI.
- toolbarMinimizationBehaviorSets the minimize behavior for the specified bars.
- toolbarMinimizationRestorationSets the restoration behavior for the specified bars during minimization.
- toolbarMinimizationSafeAreaAdjustmentSets the safe area adjustment for the specified bars during minimization.
- toolbarVisibilitySpecifies the visibility of a bar managed by SwiftUI.
See also
More in Navigation.
- AdaptableTabBarPlacementA placement for tabs in a tab view using the adaptable sidebar style.
- AutomaticNavigationTransitionA style that automatically chooses the appropriate presentation transition for the current context.
- ContentToolbarPlacementA region of the interface that hosts its own toolbar content.
- CrossFadeNavigationTransitionA navigation transition that cross-fades between the appearing view and the disappearing view.
- DismissSearchActionAn action that can end a search interaction.
- NavigationBarItemTitleDisplayModeA style for displaying the title of a navigation bar.
- NavigationPathA type-erased list of data representing the content of a navigation stack.
- NavigationPathChainNavigationPath with chained calls: SwiftUI.NavigationPath.append(...).
- NavigationPathCodableRepresentationA serializable representation of a navigation path.
- NavigationSplitViewColumnA view that represents a column in a navigation split view.
- NavigationSplitViewVisibilityThe visibility of the leading columns in a navigation split view.
- NavigationTransitionA type that defines the transition to use when navigating to a view.