SearchInAppsSDK Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
SearchContentView
@available(iOS, introduced: 14)
@MainActor
struct SearchContentView
A Swift UI View to show a single Search Content Block by providing SearchContentBlockData.
If the search content block contains search suggestions, they will be stylized by the provided
SearchContentViewOptions.
-
The type of view representing the body of this view.
When you create a custom view, Swift infers this type from your
implementation of the required View/body-swift.property property.
Declaration
Swift
@available(iOS, introduced: 14)
typealias Body = some View
-
Creates a SearchContentView.
Declaration
Swift
@available(iOS, introduced: 14)
@MainActor
init(blockData: SearchContentBlockData?, options: SearchContentViewOptions = SearchContentViewOptions())
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-07 UTC.
[null,null,["Last updated 2024-11-07 UTC."],[],["`SearchContentView`, introduced in iOS 14, is a SwiftUI view that displays a single Search Content Block using `SearchContentBlockData`. It stylizes any search suggestions within the block via `SearchContentViewOptions`. The view's body is defined by the `Body` type alias, derived from the `View/body-swift.property`. The view is initialized using `init(blockData:options:)`, accepting `SearchContentBlockData` and optional `SearchContentViewOptions`. This view runs on the main actor.\n"]]