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
propertyInfo
The property for which to display the category list
categoryUIDs
The uids of categories to display (in order)
alignmentIsVertical
Layout of the controller - vertical/horizontal
delegate
The delegate to call back when a category is selected
-
Sets the text color of category name.
Declaration
Swift
public func setCategoryTextColor(color: UIColor)
Parameters
color
Category 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