From 1ce72b73dbbe269b918d02e47e74a8c8a226cfff Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 22 Jan 2022 14:37:26 -0500 Subject: [PATCH] Mostly stop items list scrolling on sync --- Reader/Screens/Items/ItemsViewController.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Reader/Screens/Items/ItemsViewController.swift b/Reader/Screens/Items/ItemsViewController.swift index 04bd588..ee48b86 100644 --- a/Reader/Screens/Items/ItemsViewController.swift +++ b/Reader/Screens/Items/ItemsViewController.swift @@ -148,12 +148,12 @@ class ItemsViewController: UIViewController { } DispatchQueue.main.async { - self.dataSource.apply(snapshot, animatingDifferences: true) + self.dataSource.apply(snapshot, animatingDifferences: false) } } } else { DispatchQueue.main.async { - self.dataSource.apply(snapshot, animatingDifferences: true) + self.dataSource.apply(snapshot, animatingDifferences: false) } } } @@ -172,7 +172,6 @@ extension ItemsViewController: UICollectionViewDelegate { return nil } let item = fervorController.persistentContainer.viewContext.object(with: id) as! Item - // let item = resultsController.fetchedObjects![indexPath.row] return UIContextMenuConfiguration(identifier: nil, previewProvider: { ReadViewController(item: item, fervorController: self.fervorController) }, actionProvider: { _ in