Contents

ToolbarMinimizationRestoration

The restoration behavior during toolbar minimization.

Declaration

struct ToolbarMinimizationRestoration

Overview

Use this type with the toolbarMinimizationRestoration(_:for:) modifier to control when a minimized toolbar restores. By default the toolbar restores when the user reverses scroll direction; with atScrollEdge, the toolbar instead restores only when the scroll view’s content reaches the scroll edge – appropriate for screens where the bar is mostly chrome that doesn’t need to follow the user.

.toolbarMinimizationBehavior(
    .onScrollDown, for: .navigationBar)
.toolbarMinimizationRestoration(
    .atScrollEdge, for: .navigationBar)

Topics

Getting restoration options

See Also

Minimizing a toolbar