diff --git a/Tusker/Screens/Main/MainSidebarViewController.swift b/Tusker/Screens/Main/MainSidebarViewController.swift index 7eef7c8f..f72c7092 100644 --- a/Tusker/Screens/Main/MainSidebarViewController.swift +++ b/Tusker/Screens/Main/MainSidebarViewController.swift @@ -168,7 +168,13 @@ class MainSidebarViewController: UIViewController { .profileDirectory, ], toSection: .discover) } + let prevSelected = collectionView.indexPathsForSelectedItems + dataSource.apply(snapshot, animatingDifferences: false) + + if let prevSelected = prevSelected?.first { + collectionView.selectItem(at: prevSelected, animated: false, scrollPosition: .top) + } } private func reloadLists() {