UICollectionView
public extension UICollectionView
-
Applies multiple animated updates in stages using
StagedChangeset.Note
There are combination of changes that crash when applied simultaneously in
performBatchUpdates. Assumes thatStagedChangesethas a minimum staged changesets to avoid it. The data of the data-source needs to be updated synchronously beforeperformBatchUpdatesin every stages.Declaration
Swift
func reload<C>( using stagedChangeset: StagedChangeset<C>, interrupt: ((Changeset<C>) -> Bool)? = nil, setData: (C) -> Void )Parameters
stagedChangesetA staged set of changes.
interruptA closure that takes an changeset as its argument and returns
trueif the animated updates should be stopped and performed reloadData. Default is nil.setDataA closure that takes the collection as a parameter. The collection should be set to data-source of UICollectionView.
View on GitHub
UICollectionView Extension Reference