AI-generated Key Takeaways
-
SearchSuggestionsViewOptionsLayoutprovides different layout options for displaying search suggestions. -
The
tilinglayout displays suggestions in multiple lines. -
The
carousellayout uses two lines, one for the headline and a horizontally scrollable line for suggestions. -
The
compactCarousellayout displays suggestions in a single, horizontally scrollable line.
SearchSuggestionsViewOptionsLayout
enum SearchSuggestionsViewOptionsLayout : NSInteger {}The layout options for the search suggestions view.
-
In this layout, search suggestions will all be displayed in multiple lines like tiling at the very beginning.
Declaration
Swift
case tiling = 0Objective-C
SearchSuggestionsViewOptionsLayoutTiling = 0 -
In this layout, search suggestions will be displayed in two lines, one for the headline and one for the search suggestions which is horizontally scrollable.
Declaration
Swift
case carousel = 1Objective-C
SearchSuggestionsViewOptionsLayoutCarousel = 1 -
In this layout, search suggestions will be displayed in a single line, and users should swipe horizontally to view more suggestions.
Declaration
Swift
case compactCarousel = 2Objective-C
SearchSuggestionsViewOptionsLayoutCompactCarousel = 2