fix ListMonitor demo for iOS 13

This commit is contained in:
John Estropia
2019-08-20 12:42:34 +09:00
parent ed3d21db77
commit 02d5bf85ae

View File

@@ -260,9 +260,8 @@ class ListObserverDemoViewController: UITableViewController, ListSectionObserver
}
func listMonitor(_ monitor: ListMonitor<Palette>, didMoveObject object: Palette, fromIndexPath: IndexPath, toIndexPath: IndexPath) {
self.tableView.deleteRows(at: [fromIndexPath], with: .automatic)
self.tableView.insertRows(at: [toIndexPath], with: .automatic)
self.tableView.moveRow(at: fromIndexPath, to: toIndexPath)
}