I want to set root view controller after user login successfully. I implement below code and work well on below iOS 13 but when I run in iOS 13 simulator it's not work for me. Please guide how to set root view controller which work below and above iOS 13.
let navigationVC = UIStoryboard.dashboard.instantiateViewController(withIdentifier: "DashboardNavigation") as! UINavigationController
let loginVC = UIStoryboard.dashboard.instantiateViewController(withIdentifier: "HomeVC")
navigationVC.viewControllers = [loginVC]
Application.window?.rootViewController = navigationVC