SearchInAppsSDK Framework Reference

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())