Restore animation when adds and deletes happen to feed items

This commit is contained in:
Maurice Parker 2019-09-01 10:11:03 -05:00
parent 30e5f33a29
commit 397d75c6f6
1 changed files with 4 additions and 3 deletions

View File

@ -392,12 +392,13 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
func reloadFeeds() {
updateUI()
applyChanges(animate: true)
// We have to reload all the visible cells because if we got here by doing a table cell move,
// then the table itself is in a weird state. This is because we do unusual things like allowing
// drops on a "folder" that should cause the dropped cell to disappear.
reloadAllVisibleCells()
applyChanges(animate: true) { [weak self] in
self?.reloadAllVisibleCells()
}
}
func discloseFeed(_ feed: Feed, completion: (() -> Void)? = nil) {