Having completed the answer above, you can do this in Swift 3 using:
let vc = ViewController() self.navigationController?.show(vc, sender: nil)
If you are using a storyboard, you can use this:
let vc = self.storyboard?.instantiateViewController(withIdentifier: "ViewControllerID") as! YourViewController self.navigationController?.show(vc, sender: nil)
source share