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
collectionView
the collection view to be managed.
initialSectionedValues
optional - if specified, these will be the initial contents of the diff calculator.