I have a tabBar + NavigationViewController. The Tab bar has collection view with cells(Say view1) and with cells a push seag
tabBar
NavigationViewController
In my case, I use hidesBottomBarWhenPushed before I push the destination view controller.
hidesBottomBarWhenPushed
func showSecondViewController() { let vc = SecondViewController() vc.hidesBottomBarWhenPushed = true self.navigationController?.pushViewController(vc, animated: true) }