AI-generated Key Takeaways
-
SearchContentViewis a SwiftUI view designed to display a single search content block usingSearchContentBlockData. -
If the search content block includes search suggestions, they're styled according to the provided
SearchContentViewOptions. -
You can create a
SearchContentViewby providingSearchContentBlockDataand optionally customizing the suggestion styling withSearchContentViewOptions.
SearchContentView
@available(iOS, introduced: 14)
@MainActor
struct SearchContentViewA 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.propertyproperty.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())