---
title: SearchToolbarBehavior
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/searchtoolbarbehavior
---

# SearchToolbarBehavior

The behavior of a search field in a toolbar.

## Declaration

```swift
struct SearchToolbarBehavior
```

## Overview

Overview Use this type in combination with the searchToolbarBehavior(_:) modifier.

## Topics

### Type Properties

- [automatic](swiftui/searchtoolbarbehavior/automatic.md)
- [minimize](swiftui/searchtoolbarbehavior/minimize.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Populating a customizable toolbar

- [toolbar(id:content:)](swiftui/view/toolbar(id:content:).md)
- [toolbarItemHidden(_:)](swiftui/view/toolbaritemhidden(_:).md)
- [CustomizableToolbarContent](swiftui/customizabletoolbarcontent.md)
- [ToolbarCustomizationBehavior](swiftui/toolbarcustomizationbehavior.md)
- [ToolbarCustomizationOptions](swiftui/toolbarcustomizationoptions.md)
