ToolbarMinimizationSafeAreaAdjustment
The safe area adjustment during toolbar minimization.
StructureiOS 27.0+macOS 27.0+tvOS 27.0+watchOS 27.0+visionOS 27.0+ToolbarMinimizationSafeAreaAdjustment in SwiftUI
Declaration
type ToolbarMinimizationSafeAreaAdjustment = 'automatic' | 'disabled' | 'enabled';struct ToolbarMinimizationSafeAreaAdjustmentPass a literal, or build one with SwiftUI.ToolbarMinimizationSafeAreaAdjustment from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ToolbarMinimizationSafeAreaAdjustment.automaticThe system determines the safe area adjustment.
'disabled'SwiftUI.ToolbarMinimizationSafeAreaAdjustment.disabledThe safe area remains unchanged as bars minimize.
'enabled'SwiftUI.ToolbarMinimizationSafeAreaAdjustment.enabledThe safe area adjusts interactively as bars minimize.
Overview
Use this type with the
View.toolbarMinimizationSafeAreaAdjustment(_:for:) modifier to
control whether the safe area updates as bars minimize. By default
the safe area adjusts interactively, but you can disable this to
keep content in place -- for example, when displaying full-bleed
media beneath a minimizing bar.
.toolbarMinimizationBehavior(
.onScrollDown, for: .navigationBar)
.toolbarMinimizationSafeAreaAdjustment(
.disabled, for: .navigationBar)From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
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.