<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/toolbarMinimizationRestoration(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE30toolbarMinimizationRestoration_3forQrAA07ToolbareF0V_AA0H9PlacementVdtF"
  },
  "title" : "toolbarMinimizationRestoration(_:for:)"
}
-->

# toolbarMinimizationRestoration(_:for:)

Sets the restoration behavior for the specified bars during
minimization.

```
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

Use this modifier alongside [`toolbarMinimizationBehavior(_:for:)`](/documentation/SwiftUI/View/toolbarMinimizationBehavior(_:for:))
to customize when a minimized bar restores. By default, the bar
restores when the user reverses scroll direction. Use
[`atScrollEdge`](/documentation/SwiftUI/ToolbarMinimizationRestoration/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`](/documentation/SwiftUI/ToolbarPlacement/navigationBar) supports
customizing the restoration behavior, and only when used in
combination with [`onScrollDown`](/documentation/SwiftUI/ToolbarMinimizationBehavior/onScrollDown).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)