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
slotsCategories you would like to see in horizontal list. Passing
nilwould follow to default list. Passing less-than-required number of categories would follow in appending default categorieslistCustom category collection for vertical list. Passing
nilor empty array[]would follow to default list.
ConstantCategoryDataProvider Class Reference