mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-07-02 02:51:47 +02:00
fix ListMonitor demo for iOS 13
This commit is contained in:
+2
-3
@@ -260,9 +260,8 @@ class ListObserverDemoViewController: UITableViewController, ListSectionObserver
|
|||||||
}
|
}
|
||||||
|
|
||||||
func listMonitor(_ monitor: ListMonitor<Palette>, didMoveObject object: Palette, fromIndexPath: IndexPath, toIndexPath: IndexPath) {
|
func listMonitor(_ monitor: ListMonitor<Palette>, didMoveObject object: Palette, fromIndexPath: IndexPath, toIndexPath: IndexPath) {
|
||||||
|
|
||||||
self.tableView.deleteRows(at: [fromIndexPath], with: .automatic)
|
self.tableView.moveRow(at: fromIndexPath, to: toIndexPath)
|
||||||
self.tableView.insertRows(at: [toIndexPath], with: .automatic)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user