Mostly stop items list scrolling on sync

This commit is contained in:
Shadowfacts 2022-01-22 14:37:26 -05:00
parent 984b94bed9
commit 1ce72b73db
1 changed files with 2 additions and 3 deletions

View File

@ -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