AI-generated Key Takeaways
-
SearchSuggestionsViewOptionsLayout
provides different layout options for displaying search suggestions. -
The
tiling
layout displays suggestions in multiple lines. -
The
carousel
layout uses two lines, one for the headline and a horizontally scrollable line for suggestions. -
The
compactCarousel
layout 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 = 0
Objective-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 = 1
Objective-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 = 2
Objective-C
SearchSuggestionsViewOptionsLayoutCompactCarousel = 2