mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-27 03:08:44 +02:00
fix ListMonitor demo for iOS 13
This commit is contained in:
@@ -261,8 +261,7 @@ 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