DifferenceKit
DifferenceKit copied to clipboard
Use UITableView reconfigureRows and UICollectionView reconfigureItems for ChangeSet.elementUpdated
Checklist
- [x] Reviewed the README and documents.
- [x] Searched existing issues for ensure not duplicated.
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
- Better performance and more pleasing UI updates
Proposed Solution
- Use iOS 15 and tvOS 15 APIs for reconfiguring cells instead of reloading them on item updates.