Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 0d94c65

Browse files
authored
do not push routes onto master tab vcs (#2568)
1 parent 62ab896 commit 0d94c65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/Systems/AppRouter/Router.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ final class Router: NSObject {
161161
case .custom, .error: break
162162
case .push(let toController):
163163
// if trying to push but not given an origin, fallback to detail
164-
if let controller = controller {
164+
if let controller = controller,
165+
// do not allow pushing onto the master tab VC
166+
controller.tabBarController != props.splitViewController.masterTabBarController {
165167
push(from: controller, to: toController)
166168
} else {
167169
detail(controller: toController, split: props.splitViewController)

0 commit comments

Comments
 (0)