Here's how I do it in Swift 2.1 with my Home view inside the UINavigationController :
let storyboard = UIStoryboard(name: "Main", bundle: nil) let homeVC = storyboard.instantiateViewControllerWithIdentifier("HomeViewController") self.navigationController?.presentViewController(homeVC, animated: false, completion: nil) self.navigationController?.dismissViewControllerAnimated(false, completion: nil)
source share