HorizontalSelectionView

public class HorizontalSelectionView : UIView
extension HorizontalSelectionView: UICollectionViewDelegateFlowLayout, UICollectionViewDataSource

An object that manages an horizontal list of selectionable content.

  • The object that acts as the delegate of the HorizontalSelectionView.

    Declaration

    Swift

    public weak var delegate: HorizontalSelectionViewDelegate?
  • The object that provides the data for the HorizontalSelectionView.

    Declaration

    Swift

    public weak var dataSource: HorizontalSelectionViewDataSource?
  • Undocumented

    Declaration

    Swift

    override public init(frame: CGRect = CGRect.zero)
  • Undocumented

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    override public func layoutSubviews()
  • Undocumented

    Declaration

    Swift

    public func reloadData()
  • Scroll the HorizontalSelectionView to the selected position

    Declaration

    Swift

    public func scrollToSelectedPosition(animated: Bool = true)

    Parameters

    animated

    true with animation, false none.

  • Scroll the HorizontalSelectionView to a position.

    Declaration

    Swift

    public func scroll(to position: Int, animated: Bool = true)

    Parameters

    position

    the position.

    animated

    true with animation, false none.

  • The selected position.

    Declaration

    Swift

    public var selectedPosition: Int? { get set }
  • Register an HorizontalSelectionViewCell in this HorizontalSelectionView.

    Declaration

    Swift

    public func register<T>(_ cell: T.Type) where T : UICollectionViewCell, T : HorizontalSelectionViewCellProvider

    Parameters

    cell

    the cell to register.

  • Undocumented

    Declaration

    Swift

    public func numberOfSections(in collectionView: UICollectionView) -> Int
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat