I programatically have multiple View Controllers in an iOS Swift Project. I do not have the storyboards and would like to avoid them if possible. Is there a way to switch to
I had a similar issue but in my case, the solution was to dispatch the action as an async task in the main queue
DispatchQueue.main.async { let vc = self.storyboard?.instantiateViewController(withIdentifier: myVCID) as! myVCName self.present(vc, animated: true, completion: nil) }