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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-07 UTC."],[[["`SearchContentView` is a SwiftUI view designed to display a single search content block using `SearchContentBlockData`."],["If the search content block includes search suggestions, they're styled according to the provided `SearchContentViewOptions`."],["You can create a `SearchContentView` by providing `SearchContentBlockData` and optionally customizing the suggestion styling with `SearchContentViewOptions`."]]],["`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"]]