Contents

ToolbarMinimizationSafeAreaAdjustment

The safe area adjustment during toolbar minimization.

Declaration

struct ToolbarMinimizationSafeAreaAdjustment

Overview

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)

Topics

Minimization adjustment options

See Also

Minimizing a toolbar