Given the setup below, I'd like to be able to segue from green to orange. When I do, however, a new instance of orange is created without the tab bar. I'd really like to have the tab bar if possible. I thought instead of using a segue, I'd simply change the selected index to the nav controller and then forward to orange using the code below. But I still don't get the tab bar.
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "orangeView") as! OrangeViewController
self.present(nextViewController, animated:true, completion:nil)
Problem #2 - when orange is on top, I'd like go one screen back in the navigation stack (to blue). That's easy if I got there through the nav controller - I just pop the view. But if I got to orange from green, there doesn't seem to be a way to get to blue. I really thought changing the selected index should work...but it does not.