UICollectionView
public extension UICollectionView
-
Reloads visibile items
Declaration
Swift
@objc func reloadVisibleItems()
-
Scrolls to row
Declaration
Swift
func scroll(to row: Int, position: UICollectionView.ScrollPosition = .centeredHorizontally, animated: Bool = true)
-
Registers cell to collectionView
Declaration
Swift
func registerCell(with cellIdentifier: String)Parameters
cellIdentifierThe 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
cellIdentifierThe 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
cellIdentifierThe reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.
View on GitHub
UICollectionView Extension Reference