Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

searchSuggestions(_:)

A view modifier that maps SwiftUI's searchSuggestions.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.searchSuggestions(suggestions: @Composable () -> Unit): Modifier

Overview

Modifier.searchSuggestions()

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

nonisolated func searchSuggestions<S>(@ContentBuilder _ suggestions: () -> S) -> some View where S : View

Topics

Overloads

fun Modifier.searchSuggestions(visibility: Visibility, placements: SearchSuggestionsPlacement.Set): Modifier
SwiftUI View.searchSuggestions(_:for:)
fun Modifier.searchSuggestions(suggestions: @Composable () -> Unit): Modifier
SwiftUI View.searchSuggestions(_:)