I have a tab bar based app. There are navigation controllers in all 5 tabs with instances of custom view controller setup properly as root view controllers. This loads just
Swift 4: you can use as below.
DispatchQueue.main.async { let popUpVc = Utilities.viewController(name: "TwoBtnPopUpViewController", onStoryboard: "Login") as? TwoBtnPopUpViewController self.present(popUpVc!, animated: true, completion: nil) }
It works for me.