SearchInAppsSDK Framework Reference

SearchSuggestionsViewOptions

@objc
class SearchSuggestionsViewOptions

This class provides all the options to customize the search suggestions UI view.

  • The layout options for the search suggestions view.

    Declaration

    Swift

    @objc(SearchSuggestionsViewOptionsLayout)
    enum Layout
  • The type of publisher that emits before the object has changed.

    Declaration

    Swift

    @available(iOS, introduced: 14)
    typealias ObjectWillChangePublisher = ObservableObjectPublisher
  • The theme options for the search suggestions view.

    Declaration

    Swift

    @objc(SearchSuggestionsViewOptionsTheme)
    enum Theme
  • The click notification delegate for the search suggestions view.

    Declaration

    Swift

    @objc
    weak var clickNotificationDelegate: (any SearchContentClickNotificationDelegate)?
  • The specified fraction of the screen height to present the sheet. The valid value is between 0.5 and 1.0. iOS 16.0+ only.

    Declaration

    Swift

    @objc
    var customizedSheetHeightFraction: CGFloat
  • The specified detent option to render search sheet (e.g. medium/large).

    Declaration

    Swift

    @objc
    var detentOption: DetentOptions
  • The specified layout to render search suggestion chips (e.g. carousel)

    Declaration

    Swift

    @objc
    var layout: SearchSuggestionsViewOptions.Layout { get set }
  • The open URL delegate for the search suggestions view.

    Declaration

    Swift

    @objc
    weak var openURLDelegate: (any SearchContentOpenURLDelegate)?
  • The specified theme to render search suggestion chips (e.g. light/dark mode)

    Declaration

    Swift

    @objc
    var theme: SearchSuggestionsViewOptions.Theme { get set }