---
title: "toolbarMinimizationRestoration(_:for:)"
framework: swiftui
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "swiftui/view/toolbarminimizationrestoration(_:for:)"
---

# toolbarMinimizationRestoration(_:for:)

Sets the restoration behavior for the specified bars during minimization.

## Declaration

```swift
nonisolated func toolbarMinimizationRestoration(_ restoration: ToolbarMinimizationRestoration, for bars: ToolbarPlacement...) -> some View

```

## Parameters

- `restoration`: The restoration behavior.
- `bars`: The bars to apply the restoration behavior to.

## Discussion

Discussion Use this modifier alongside toolbarMinimizationBehavior(_:for:) to customize when a minimized bar restores. By default, the bar restores when the user reverses scroll direction. Use atScrollEdge to restrict restoration to 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. NavigationStack {     ScrollView {         // ...     }     .toolbarMinimizationBehavior(         .onScrollDown, for: .navigationBar)     .toolbarMinimizationRestoration(         .atScrollEdge, for: .navigationBar) } Currently, only navigationBar supports customizing the restoration behavior, and only when used in combination with onScrollDown.

## See Also

### Minimizing a toolbar

- [toolbarMinimizationBehavior(_:for:)](swiftui/view/toolbarminimizationbehavior(_:for:).md)
- [ToolbarMinimizationBehavior](swiftui/toolbarminimizationbehavior.md)
- [ToolbarMinimizationRestoration](swiftui/toolbarminimizationrestoration.md)
- [toolbarMinimizationSafeAreaAdjustment(_:for:)](swiftui/view/toolbarminimizationsafeareaadjustment(_:for:).md)
- [ToolbarMinimizationSafeAreaAdjustment](swiftui/toolbarminimizationsafeareaadjustment.md)
