CategoryCarouselViewController
public class CategoryCarouselViewController : UIViewController
extension CategoryCarouselViewController : UICollectionViewDelegate
extension CategoryCarouselViewController : UICollectionViewDataSource
extension CategoryCarouselViewController : UICollectionViewDelegateFlowLayout
View controller to show list of categories in a horizontal scrollable list.
-
Instantiates the category selection view controller.
Declaration
Swift
public static func instantiateViewController(propertyInfo: PropertyInfo, categoryUIDs: [String], alignmentIsVertical: Bool = false, delegate: CategorySelectionDelegate) -> UIViewController?Parameters
propertyInfoThe property for which to display the category list
categoryUIDsThe uids of categories to display (in order)
alignmentIsVerticalLayout of the controller - vertical/horizontal
delegateThe delegate to call back when a category is selected
-
Sets the text color of category name.
Declaration
Swift
public func setCategoryTextColor(color: UIColor)Parameters
colorCategory name color
-
Declaration
Swift
public override func viewDidLoad() -
Declaration
Swift
public override func didMove(toParent parent: UIViewController?) -
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) -
Declaration
Swift
public func numberOfSections(in collectionView: UICollectionView) -> Int -
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int -
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell -
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize -
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets -
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat -
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat
CategoryCarouselViewController Class Reference