to go to next navigationViewController programmatically without storyboard
let nextView = NextViewController() let navi = UINavigationController(rootViewController: nextView) present(navi, animated: true, completion: nil)