<!--
{
  "availability" : [
    "iOS: 17.1.0 -",
    "iPadOS: 17.1.0 -",
    "macCatalyst: 17.1.0 -",
    "macOS: 14.1.0 -",
    "tvOS: 17.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SearchPresentationToolbarBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI33SearchPresentationToolbarBehaviorV"
  },
  "title" : "SearchPresentationToolbarBehavior"
}
-->

# SearchPresentationToolbarBehavior

A type that defines how the toolbar behaves when presenting search.

```
struct SearchPresentationToolbarBehavior
```

## Overview

Use this type in combination with the
[`searchPresentationToolbarBehavior(_:)`](/documentation/SwiftUI/View/searchPresentationToolbarBehavior(_:))

## Topics

### Getting toolbar behaviors

[`automatic`](/documentation/SwiftUI/SearchPresentationToolbarBehavior/automatic)

The automatic behavior.

[`avoidHidingContent`](/documentation/SwiftUI/SearchPresentationToolbarBehavior/avoidHidingContent)

The avoid hiding content behavior.



---

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)