Open
Description
Checklist
- This is not a Apple's bug.
- Reviewed the README and documents.
- Searched existing issues for ensure not duplicated.
Expected Behavior
On tableView didSelect delegate callback, I toggle the snapshot's Item isSelected
property and apply a new snapshot with this data changed (otherwise selection would be lost when reusing cells, as the selection is set in my cell provider from the item)
When using the native UITableViewDiffableDataSource, the table view remains at the same content offset no matter where I apply the snapshot from.
Current Behavior
When using DiffableDataSource's TableViewDiffableDataSource, and the tableview's bottommost rows are visible, the scrolling position is offset after applying a snapshot
Reproducible Demo Project
https://github.com/rafaelnobrekz/DiffableDataSourceOffsetBug
Environments
-
version: 0.5
-
Swift version: 5.5
-
iOS version: 11-16
-
Xcode version: 14.2
-
Devices/Simulators:
-
CocoaPods/Carthage version:
Metadata
Metadata
Assignees
Labels
No labels