AI-generated Key Takeaways
-
SearchContentsis a collection of search content block data available in iOS 14 and later. -
It provides a publisher (
ObjectWillChangePublisher) that emits before the object changes. -
The
loadMoreContents()function allows requesting additional search content asynchronously. -
The
searchContentBlocksproperty provides access to the ready-to-display search content blocks.
SearchContents
@available(iOS, introduced: 14)
@objc
final class SearchContentsA collection of search content block data
-
The type of publisher that emits before the object has changed.
Declaration
Swift
@available(iOS, introduced: 14) typealias ObjectWillChangePublisher = ObservableObjectPublisher -
Request additional content (if available) using the same options as the original request.
Declaration
Swift
@available(iOS, introduced: 14) @objc final func loadMoreContents() async throws -> [SearchContentBlockData]Return Value
An array containing the additional search content.
-
The set of search content blocks ready to be displayed
Declaration
Swift
@available(iOS, introduced: 14) @Published @objc final var searchContentBlocks: [SearchContentBlockData] { get }