Clear the feed when we navigate back to the Feeds and Timeline isn't showing.
This commit is contained in:
parent
aac3c86561
commit
c470e56c39
|
@ -1058,9 +1058,14 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
|
||||||
|
|
||||||
extension SceneCoordinator: UINavigationControllerDelegate {
|
extension SceneCoordinator: UINavigationControllerDelegate {
|
||||||
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
|
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
|
||||||
if rootSplitViewController.isCollapsed && viewController === masterFeedViewController {
|
|
||||||
|
if viewController === masterFeedViewController {
|
||||||
activityManager.invalidateCurrentActivities()
|
activityManager.invalidateCurrentActivities()
|
||||||
|
if !rootSplitViewController.isCollapsed {
|
||||||
|
selectFeed(nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue