SearchToolbarBehavior

The behavior of a search field in a toolbar.

StructureiOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+visionOS 26.0+SearchToolbarBehavior in SwiftUI

Declaration

React
type SearchToolbarBehavior = 'automatic' | 'minimize';
Swift
struct SearchToolbarBehavior

Pass a literal, or build one with SwiftUI.SearchToolbarBehavior from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

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

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Navigation.