diff --git a/Reader/Screens/Home/HomeViewController.swift b/Reader/Screens/Home/HomeViewController.swift index 300a282..cf8570f 100644 --- a/Reader/Screens/Home/HomeViewController.swift +++ b/Reader/Screens/Home/HomeViewController.swift @@ -79,6 +79,11 @@ class HomeViewController: UIViewController { collectionView.deselectItem(at: indexPath, animated: true) } } + + var snapshot = dataSource.snapshot() + // reconfigure so that unread counts update + snapshot.reconfigureItems(snapshot.itemIdentifiers) + dataSource.apply(snapshot) } private func createDataSource() -> UICollectionViewDiffableDataSource {