Also update avatar on iPad (IOS-277)

This commit is contained in:
Nathan Mattes 2024-05-25 19:56:20 +02:00
parent 395a4c0fba
commit 8f642ea021
1 changed files with 8 additions and 0 deletions

View File

@ -135,6 +135,14 @@ extension SidebarViewController {
sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true sidebarDoubleTapGestureRecognizer.cancelsTouchesInView = true
collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer) collectionView.addGestureRecognizer(sidebarDoubleTapGestureRecognizer)
NotificationCenter.default.publisher(for: .userFetched)
.receive(on: DispatchQueue.main)
.sink { [weak self] _ in
guard let self, let snapshot = self.viewModel.diffableDataSource?.snapshot() else { return }
self.viewModel.diffableDataSource?.applySnapshotUsingReloadData(snapshot)
}
.store(in: &disposeBag)
} }
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {