UICollectionView

public extension UICollectionView

Scroll Helpers

  • Scrolls to row

    Declaration

    Swift

    func scroll(to row: Int, position: UICollectionView.ScrollPosition = .centeredHorizontally, animated: Bool = true)

CollectionView Registers

  • Registers cell to collectionView

    Declaration

    Swift

    func registerCell(with cellIdentifier: String)

    Parameters

    cellIdentifier

    The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.

  • Registers header to collectionView

    Declaration

    Swift

    func registerHeader(with cellIdentifier: String)

    Parameters

    cellIdentifier

    The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.

  • Registers footer to collectionView

    Declaration

    Swift

    func registerFooter(with cellIdentifier: String)

    Parameters

    cellIdentifier

    The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.