Update unread counts when returning to home
This commit is contained in:
parent
12e0e3cdfd
commit
c9b12a6b70
|
@ -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<Section, Item> {
|
||||
|
|
Loading…
Reference in New Issue