Mostly stop items list scrolling on sync
This commit is contained in:
parent
984b94bed9
commit
1ce72b73db
|
@ -148,12 +148,12 @@ class ItemsViewController: UIViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.dataSource.apply(snapshot, animatingDifferences: true)
|
self.dataSource.apply(snapshot, animatingDifferences: false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.dataSource.apply(snapshot, animatingDifferences: true)
|
self.dataSource.apply(snapshot, animatingDifferences: false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,6 @@ extension ItemsViewController: UICollectionViewDelegate {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
let item = fervorController.persistentContainer.viewContext.object(with: id) as! Item
|
let item = fervorController.persistentContainer.viewContext.object(with: id) as! Item
|
||||||
// let item = resultsController.fetchedObjects![indexPath.row]
|
|
||||||
return UIContextMenuConfiguration(identifier: nil, previewProvider: {
|
return UIContextMenuConfiguration(identifier: nil, previewProvider: {
|
||||||
ReadViewController(item: item, fervorController: self.fervorController)
|
ReadViewController(item: item, fervorController: self.fervorController)
|
||||||
}, actionProvider: { _ in
|
}, actionProvider: { _ in
|
||||||
|
|
Loading…
Reference in New Issue