UINavigationController { let nav = UINavigationController(rootViewController: rootViewController) nav.tabBarItem.image = image return nav }"> UINavigationController { let nav = UINavigationController(rootViewController: rootViewController) nav.tabBarItem.image = image return nav }"> UINavigationController { let nav = UINavigationController(rootViewController: rootViewController) nav.tabBarItem.image = image return nav }">
func configureViewControllers() {
    
    let feed = FeedController()
    let nav1 = templateNaviagtionController(image: UIImage(named: "home_unselected"), rootViewController: feed)
    let explore = ExploreController()
    let nav2 = templateNaviagtionController(image: UIImage(named: "search_unselected"), rootViewController: explore)
    let notifications = NotificationsController()
    let nav3 = templateNaviagtionController(image: UIImage(named: "like_unselected"), rootViewController: notifications)
    let conversations = ConversationsController()
    let nav4 = templateNaviagtionController(image: UIImage(named: "like_unselected"), rootViewController: conversations)
    
    viewControllers = [nav1, nav2, nav3, nav4]
    
}

func templateNaviagtionController(image: UIImage?, rootViewController: UIViewController) -> UINavigationController {
    let nav = UINavigationController(rootViewController: rootViewController)
    nav.tabBarItem.image = image
    return nav
}