UITabBarController Not Displaying Tab Bar Items – iOS 18+
After upgrading my project to iOS 18, I’ve encountered an issue where the UITabBarController
no longer displays the tab bar items or icons properly. The same code has been working flawlessly across iOS versions 11 to 17, so the problem seems specific to iOS 18. Additionally, I’ve noticed that the selectedIndex
occasionally gets set to Int.max
, which leads to out-of-bounds values and results in the wrong tab being selected.