I have a Tab that extends the UITabBarController
and three tabs. How can disable a tab from opening by condition?
class Tab: UITabBarController {
override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
if(item.tag == 1) // dont open tab ????
}
}