Each of the view controllers presented need to present their own navigation bar title - I am programmatically creating the titles - but how can they be passed to the CBFlashyTabBarController function similar to the array of viewControllers. Currently the navigation bar controller is presenting with no titles at all.
let test1VC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "Test1")
The following navigationItem.title is not presented once pushViewController is executed.
test1VC.navigationItem.title = "Test1"
test1VC.tabBarItem = UITabBarItem(title: "Test1", image: #imageLiteral(resourceName: "img1TabLarge"), tag: 0)
let test2VC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "0")
The following navigationItem.title is not presented once pushViewController is executed.
test1VC.navigationItem.title = "Test2"
test1VC.tabBarItem = UITabBarItem(title: "Test2", image: #imageLiteral(resourceName: "img2TabLarge"), tag: 0)
let tabBarController = CBFlashyTabBarController()
let controllers = [test1VC, test2VC]
tabBarController.viewControllers = controllers
navigationController?.pushViewController(tabBarController, animated: true)