In my app I want to create a new UIWindow over the main UIWindow, And I wrote as following, but it don\'t works. first, i create a UIWindow as the
UIWindow
if you just need to change shared window ViewController in swift 5
UIApplication.shared.keyWindow?.rootViewController = UINavigationController(rootViewController: yourViewController)