One Logo Pool Ball
SwiftUI · IOS API REFERENCE

SearchScopeActivation

struct · iOS 16.4+ · SDK 27.1

struct SearchScopeActivation

The ways that searchable modifiers can show or hide search scopes.

Members (3)

get · iOS 16.4+

onSearchPresentation

TypeScript
static get onSearchPresentation(): SearchScopeActivation
Swift declaration
static var onSearchPresentation: SearchScopeActivation { get }

An activation where the system shows search scopes after presenting search and hides search scopes after search cancellation.

get · iOS 16.4+

onTextEntry

TypeScript
static get onTextEntry(): SearchScopeActivation
Swift declaration
static var onTextEntry: SearchScopeActivation { get }

An activation where the system shows search scopes when typing begins in the search field and hides search scopes after search cancellation.

get · iOS 16.4+

automatic

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

The automatic activation of the scope bar. By default, this is ``SearchScopeActivation/onTextEntry`` in iOS and ``SearchScopeActivation/onSearchPresentation`` in macOS.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →