Code that disables a tab bar item via UITabBarItem.isEnabled = false used to both grey out the item and block taps on iOS 18. On iOS 26, the item often remains tappable and selectable, even though isEnabled is set to false. This looks like a behavior change or regression.
func disableTabbarItems(tabbar: UITabBarController, isEnable: Bool, index: Int) {
if let tabItems = tabbar.tabBar.items, index < tabItems.count {
let tabItem = tabItems[index]
tabItem.isEnabled = isEnable
}
}
iOS 18
iOS 26