CollectionViewDiffCalculator
public final class CollectionViewDiffCalculator<Section: Equatable, Value: Equatable> : AbstractDiffCalculator<Section, Value>
This class manages a UICollectionView’s items and sections. It will make the necessary
calls to the collection view to ensure that its UI is kept in sync with the contents
of the sectionedValues property.
-
The collection view to be managed.
Declaration
Swift
public weak var collectionView: UICollectionView? -
Initializes a new diff calculator.
Declaration
Swift
public init(collectionView: UICollectionView?, initialSectionedValues: SectionedValues<Section, Value> = SectionedValues())Parameters
collectionViewthe collection view to be managed.
initialSectionedValuesoptional - if specified, these will be the initial contents of the diff calculator.
View on GitHub
CollectionViewDiffCalculator Class Reference