<!--
{
  "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/ToolbarMinimizationRestoration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI30ToolbarMinimizationRestorationV"
  },
  "title" : "ToolbarMinimizationRestoration"
}
-->

# ToolbarMinimizationRestoration

The restoration behavior during toolbar minimization.

```
struct ToolbarMinimizationRestoration
```

## Overview

Use this type with the [`toolbarMinimizationRestoration(_:for:)`](/documentation/SwiftUI/View/toolbarMinimizationRestoration(_:for:))
modifier to control when a minimized toolbar restores. By default the
toolbar restores when the user reverses scroll direction; with
[`atScrollEdge`](/documentation/SwiftUI/ToolbarMinimizationRestoration/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

[`static let atScrollEdge: ToolbarMinimizationRestoration`](/documentation/SwiftUI/ToolbarMinimizationRestoration/atScrollEdge)

The toolbar restores only when the scroll view’s content reaches
the scroll edge.

[`static let automatic: ToolbarMinimizationRestoration`](/documentation/SwiftUI/ToolbarMinimizationRestoration/automatic)

The system determines the restoration behavior.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)