Closed sathamkhussain closed 3 years ago
Same! Anyone else having these issues?
I'm facing the same issue. Any luck?
Actually, the way to get the TabBar views is a hack that was broken in the recent iOS version.
extension UITabBarController {
func orderedTabBarItemViews() -> [UIView] {
let interactionViews = tabBar.subviews.filter({$0.isUserInteractionEnabled})
return interactionViews.sorted(by: {$0.frame.minX < $1.frame.minX})
}
}
Therefore, the TabBar item view can not be displayed. I am sorry that I have not found the solution yet.
Here is the original Stack Overflow answer for these codes.