Fix VC restored to secondary split nav missing Close button
This commit is contained in:
parent
ab17a688cf
commit
6f51f321f6
|
@ -304,6 +304,12 @@ private class SplitSecondaryNavigationController: EnhancedNavigationViewControll
|
|||
}
|
||||
}
|
||||
|
||||
override func pushViewController(_ viewController: UIViewController, animated: Bool) {
|
||||
super.pushViewController(viewController, animated: animated)
|
||||
|
||||
configureSecondarySplitCloseButton(for: viewControllers.first!)
|
||||
}
|
||||
|
||||
private func configureSecondarySplitCloseButton(for viewController: UIViewController) {
|
||||
guard viewController.navigationItem.leftBarButtonItem?.tag != ViewTags.splitNavCloseSecondaryButton else {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue