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: [Category]
  • Provide custom vertical list of categories

    Declaration

    Swift

    public var categoryList: [Category]
  • Make a constant categories provider

    Declaration

    Swift

    public init(slots: [Category]?, list: [Category]? = 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 categories

    list

    Custom category collection for vertical list. Passing nil would follow to default list. There is no required minimal number of categories.