canopas / UIPilot

The missing typesafe SwiftUI navigation library

Home Page:https://canopas.github.io/UIPilot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iPad changing orientation is causing a pop route by the system. UIPilot - root route popped by system

renatomateusx opened this issue · comments

I have an app that uses UIPilot and when we change from portrait to landscape or vice versa, that code is checked and executed.

func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {   
     if let stackSizeProvider = stackSizeProvider, stackSizeProvider() > navigationController.viewControllers.count {
        self.popHandler?()
     }
}

This is happening on the 2.0.2 version.

Hello @renatomateusx, sorry but I'm not able to reproduce this issue with your given version, It would be so helpful if you provide the reproduction steps.