Revert "Switch to profile tab to view your own profile, regardless of where you’re navigating from."
This reverts commit 6035e0e69def1a43207676afebde368a1dfc42e4. Overriding design principle: Switch tabs only based on user’s direct interaction with the tabs.
This commit is contained in:
parent
6035e0e69d
commit
a2558201be
@ -280,17 +280,6 @@ extension SceneCoordinator {
|
||||
guard var presentingViewController = sender ?? sceneDelegate.window?.rootViewController?.topMost else {
|
||||
return nil
|
||||
}
|
||||
|
||||
if case let .profile(profileType) = scene {
|
||||
switch profileType {
|
||||
case .me:
|
||||
switchToTabBar(tab: .me)
|
||||
return tabBarController.meProfileViewController
|
||||
case .notMe:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// adapt for child controller
|
||||
if let navigationControllerVisibleViewController = presentingViewController.navigationController?.visibleViewController {
|
||||
switch viewController {
|
||||
|
Loading…
x
Reference in New Issue
Block a user