Skip to content

Commit

Permalink
Fixed header navigationBar not being tappable after pushing to anothe…
Browse files Browse the repository at this point in the history
…r view controller
  • Loading branch information
Oscar Apeland committed Oct 25, 2017
1 parent b7552b3 commit 6cca14c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ extension SwipeableNavigationController: UINavigationControllerDelegate {
if #available(iOS 11.0, *) {
navigationController.navigationBar.prefersLargeTitles = viewController is SwipeableViewController
}

if let largeTitleLabel = (navigationBar as? SwipeableNavigationBar)?.largeTitleLabel {
navigationBar.sendSubview(toBack: largeTitleLabel)
}
}

open func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
Expand Down

0 comments on commit 6cca14c

Please sign in to comment.