Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

searchScopes(_:)

A view modifier that maps SwiftUI's searchScopes.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS: unavailable (no-op)
fun Modifier.searchScopes(scope: Any, onScopeChange: (Any) -> Unit, scopes: @Composable () -> Unit): Modifier

Overview

Modifier.searchScopes(scope = value, onScopeChange = { value -> })

This is the Kotlin form of SwiftUI View.searchScopes(_:scopes:): SwiftUI documentation. In Swift it reads:

nonisolated func searchScopes<V, S>(_ scope: Binding<V>, @ContentBuilder scopes: () -> S) -> some View where V : Hashable, S : View

Topics

Overloads

fun Modifier.searchScopes(scope: Any, onScopeChange: (Any) -> Unit, activation: SearchScopeActivation, scopes: @Composable () -> Unit): Modifier
SwiftUI View.searchScopes(_:activation:_:)
fun Modifier.searchScopes(scope: Any, onScopeChange: (Any) -> Unit, scopes: @Composable () -> Unit): Modifier
SwiftUI View.searchScopes(_:scopes:)