Post

Replies

Boosts

Views

Activity

Reorder event and UITableViewDiffableDataSource - not automatically update the datasource
Hi, I've tried to adopt UITableViewDiffableDataSource to my app. It's working very well but one thing I notice is ... If I have setEditting mode on the tableview and if user move the cell via re-order control. At first, I think UITableViewDiffableDataSource will automatically know the move by itself. But it's not. After end editing on the tableview and I check the snapshot() and print the list of items to see. The order is still the same before re-order by user. So that I've to implemented the subclass of UITableViewDiffableDataSource at method 'moveRowAt' instead. To update the new ordered list into the snapshot and apply to datasource. Just need to confirm, this is the expected behavior right? UITableViewDiffableDataSource doesn't know automatically when user actually perform re-order the cell by user and done the editing. Any ideas? Thanks.
0
0
300
Jun ’20