Classes

The following classes are available globally.

  • This class manages a UITableView’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 the sectionedValues property.

    See more

    Declaration

    Swift

    public final class TableViewDiffCalculator<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.

    See more

    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 SingleSectionTableViewDiffCalculator. 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 a TableViewDiffCalculator. You’ll be less likely to mess up the index math :P

    See more

    Declaration

    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 SingleSectionCollectionViewDiffCalculator. 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 a CollectionViewDiffCalculator. You’ll be less likely to mess up the index math :P

    See more

    Declaration

    Swift

    public final class SingleSectionCollectionViewDiffCalculator<Value: Equatable>