Also update avatar on iPad (IOS-277)
This commit is contained in:
parent
395a4c0fba
commit
8f642ea021
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue