Classes
The following classes are available globally.
-
This class manages a
See moreUITableView
’s rows and sections. It will make the necessary calls to the table view to ensure that its UI is kept in sync with the contents of thesectionedValues
property.Declaration
Swift
public final class TableViewDiffCalculator<Section: Equatable, Value: Equatable>: AbstractDiffCalculator<Section, Value>
-
This class manages a
See moreUICollectionView
’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 thesectionedValues
property.Declaration
Swift
public final class CollectionViewDiffCalculator<Section: Equatable, Value: Equatable> : AbstractDiffCalculator<Section, Value>
-
If your table view only has a single section, or you only want to power a single section of it with Dwifft, use a
See moreSingleSectionTableViewDiffCalculator
. Note that this approach is not highly recommended, and you should do so only if it really doesn’t make sense to just power your whole table with aTableViewDiffCalculator
. You’ll be less likely to mess up the index math :PDeclaration
Swift
public final class SingleSectionTableViewDiffCalculator<Value: Equatable>
-
If your collection view only has a single section, or you only want to power a single section of it with Dwifft, use a
See moreSingleSectionCollectionViewDiffCalculator
. Note that this approach is not highly recommended, and you should do so only if it really doesn’t make sense to just power your whole view with aCollectionViewDiffCalculator
. You’ll be less likely to mess up the index math :PDeclaration
Swift
public final class SingleSectionCollectionViewDiffCalculator<Value: Equatable>