Hero: Don't work iOS11 & Swift4 with UITabBar

Created on 22 Sep 2017  路  6Comments  路  Source: HeroTransitions/Hero

Hello,
I used hero in my project.
This iOS 11 and Xcode9 update caused a bug.
I used custom UITabBar with hero.
After the view disappears, it does not touch.

reopen if needed

Most helpful comment

I'm not sure what the cause is yet, but it looks like there are dangling animations on the UITabBar. If you run tabBar.layer.removeAllAnimations() the tab bar will go back to working correctly.

All 6 comments

Same issue here, after a hero modal transition the tab bar becomes non-interactive

I found if set vc.hidesBottomBarWhenPushed = true then it not work as a bug,
if vc.hidesBottomBarWhenPushed = false , it is no problem

I reproduce this bug in code https://github.com/caihua/Hero/commit/e961071d41417b1c8591fe8f3a412e9e5c8b21ee
No solution has been found yet.
So use self.tabBarController?.tabBar.isHidden = false or true in viewDidAppear as a temporary solution maybe ok,But this is a bit too complicated.

I am having the same issue...I have a collection view with a hero transition that goes into a view controller.
Once you open that view controller, then press the back button you are looking at the collection view once again. From this moment, the tab bar stops working.

I'm not sure what the cause is yet, but it looks like there are dangling animations on the UITabBar. If you run tabBar.layer.removeAllAnimations() the tab bar will go back to working correctly.

Hello I still have the issue

I used hero in my project.
I used UITabBar with hero.
After the view disappears, it does not touch.

        vc.hero.modalAnimationType = .selectBy(presenting: .slide(direction: .left), dismissing: .slide(direction: .right))

Event if I use tabBar.layer.removeAllAnimations()

Thank you very much

Was this page helpful?
0 / 5 - 0 ratings