UICollectionView
class UICollectionView : UIScrollView, UIDataSourceTranslating
-
Initiates a layout pass of UICollectionView and its items. Necessary for calculating new cell heights and animations when the internal state of a cell changes and needs to reflect them immediately.
Declaration
Swift
public func render() -
Deselects the previously selected row, with an option to animate the deselection.
Declaration
Swift
public func deselectLastSelectedItem(animated: Bool)Parameters
animatedtrueto animate the deselection, orfalseif the change should be immediate. -
Find the
IndexPathfor a particular view. Returnsnilif the view is not an instance of, or a subview ofUICollectionViewCell, or if that cell is not a child ofselfDeclaration
Swift
public func indexPath(for view: UIView) -> IndexPath?Parameters
viewThe view to find the
IndexPath.Return Value
The
IndexPathof the view in theUICollectionViewornilif it could not be found.
View on GitHub
UICollectionView Extension Reference