ToolbarMinimizationRestoration
The restoration behavior during toolbar minimization.
Declaration
struct ToolbarMinimizationRestorationOverview
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)