ra1028 / DifferenceKit

💻 A fast and flexible O(n) difference algorithm framework for Swift collection.
https://ra1028.github.io/DifferenceKit
Apache License 2.0
3.56k stars 241 forks source link

Use UITableView reconfigureRows and UICollectionView reconfigureItems for ChangeSet.elementUpdated #158

Open laevandus opened 9 months ago

laevandus commented 9 months ago

Checklist

Description

Since iOS and tvOS 15 there are new reconfigureRows and reconfigureItems methods which do not trigger cell recreation. Gives better performance since cells are just updated, not recreated from scratch. Also useful since when there are multiple updates to the same index path, we do not run the reload cell animation.

Motivation and Context

Proposed Solution