AI-generated Key Takeaways
-
SearchSuggestionsViewOptionsis a class used for customizing the search suggestions UI view within the SearchInApps SDK. -
It provides options to control the layout, theme, and behavior of search suggestion chips, including their presentation style (e.g., sheet height, detent options).
-
Developers can utilize delegates like
clickNotificationDelegateandopenURLDelegateto handle user interactions with the search suggestions. -
Customization is achieved through properties like
layoutandtheme, offering control over the visual appearance and arrangement of search suggestions. -
iOS 16.0+ introduces the
customizedSheetHeightFractionproperty, allowing for specific control over the search sheet's height on compatible devices.
SearchSuggestionsViewOptions
@objc
class SearchSuggestionsViewOptionsThis 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 }