ToolbarMinimizationSafeAreaAdjustment
The safe area adjustment during toolbar minimization.
Declaration
struct ToolbarMinimizationSafeAreaAdjustmentOverview
Use this type with the 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.
.toolbarMinimizeBehavior(
.onScrollDown, for: .navigationBar)
.toolbarMinimizationSafeAreaAdjustment(
.disabled, for: .navigationBar)