ContainerView with multiple embed segues
No, there is no way to have multiple embed segues to one container view. One way to do all the setup in IB, would be to make the embedded controller a UITabBarController (with the tab bar hidden). You can then have as many controllers in the tabs as you want, and switch to them in code using the selectedIndex property of UITabBarController.
Yes, I was able to achieve what you're looking for inspired by @rdelmar post. What you need to do is to embed a UITabBarViewController
into your container view. Then you programmatically choose which controller you like to present. You might also like to hide the tab bar.
If you want you can also hide the tab bars seen in the storyboard file
You can choose the view controller you want to present by subclassing the UITabBarController:
override func viewDidLoad() {
super.viewDidLoad()
self.selectedIndex = 1
}
You can hide the tab bar in your view controller by calling self.tabBarController?.tabBar.isHidden = true
in viewDidLoad()
.