One Logo Pool Ball
SwiftUI · IOS API REFERENCE

SearchPresentationToolbarBehavior

struct · iOS 17.1+ · SDK 27.1

struct SearchPresentationToolbarBehavior

A type that defines how the toolbar behaves when presenting search. Use this type in combination with the ``View/searchPresentationToolbarBehavior(_:)``

Members (2)

get · iOS 17.1+

avoidHidingContent

TypeScript
static get avoidHidingContent(): SearchPresentationToolbarBehavior
Swift declaration
static var avoidHidingContent: SearchPresentationToolbarBehavior { get }

The avoid hiding content behavior. In iOS, this will avoid hiding content in the toolbar as it adapts to a search presentation. This has no effect on other platforms.

get · iOS 17.1+

automatic

TypeScript
static get automatic(): SearchPresentationToolbarBehavior
Swift declaration
static var automatic: SearchPresentationToolbarBehavior { get }

The automatic behavior.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →