aromajoin / material-showcase-ios

✨ An elegant way to guide your beloved users in iOS apps - Material Showcase.
https://aromajoin.com/
Other
363 stars 128 forks source link

Tabar Item not showing when showcase is showing #138

Closed sathamkhussain closed 3 years ago

sathamkhussain commented 4 years ago

IMG_0154

royherma commented 3 years ago

Same! Anyone else having these issues?

ftahery93 commented 3 years ago

I'm facing the same issue. Any luck?

quangctkm9207 commented 3 years ago

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.