I'm trying to use the navigation bar from the Navigation Controller while using the tab bar from the UITabBarController. If I set my Navigation Controller's root controller to my Tab Bar View Controller, I get image 2. If I set the root controller to my main View Controller (which is Tab Bar item 0), I get picture 1.
I'm not using the storyboard, right now my hierarchy is as follows:
NavigationController->UITabBarController->ViewControllers
AppDelegate.swift:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.main.bounds)
window?.makeKeyAndVisible()
window?.rootViewController = UINavigationController(rootViewController: TabViewController())
return true
}