ConstantCategoryDataProvider
public class ConstantCategoryDataProvider : CategoryDataProvider
Provider for fixed categories sets.
-
Provide custom list of category buttons in the row under search textfield. Only first 4 categories would be used.
Default values would be added if necessary.
Declaration
Swift
public var categorySlots: [SearchCategory]
-
Provide custom vertical list of categories
Declaration
Swift
public var categoryList: [SearchCategory]
-
Make a constant categories provider
Declaration
Swift
public init(slots: [SearchCategory]?, list: [SearchCategory]? = nil)
Parameters
slots
Categories you would like to see in horizontal list. Passing
nil
would follow to default list. Passing less-than-required number of categories would follow in appending default categorieslist
Custom category collection for vertical list. Passing
nil
or empty array[]
would follow to default list.