Fix VC restored to secondary split nav missing Close button

This commit is contained in:
Shadowfacts 2023-02-25 15:15:00 -05:00
parent ab17a688cf
commit 6f51f321f6
1 changed files with 6 additions and 0 deletions

View File

@ -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) { private func configureSecondarySplitCloseButton(for viewController: UIViewController) {
guard viewController.navigationItem.leftBarButtonItem?.tag != ViewTags.splitNavCloseSecondaryButton else { guard viewController.navigationItem.leftBarButtonItem?.tag != ViewTags.splitNavCloseSecondaryButton else {
return return