I wonder if its possible to set a new root VC?
My app gets init with a uinavigation controller that has a table view to be the root VC.
Then from the table v
Any view controller you want to set root just call the below function like
UIApplication.shared.setRootVC(vc) extension UIApplication { func setRootVC(_ vc : UIViewController){ self.windows.first?.rootViewController = vc self.windows.first?.makeKeyAndVisible() } }