Hero icon indicating copy to clipboard operation
Hero copied to clipboard

animations won't work after switching and switching back on tabBarController

Open SaeeSaadat opened this issue 2 years ago • 1 comments

What did you do?

I have a main navigationController in my app that navigates between login page and the main tabBar. the tabBar it self has two child controllers which are both navigationControllers

there is this weird thing with "isHeroEnabled" in the navigationController where if i set it to true in viewDidLoad, hero animations won't work! but if i don't touch it it'll work fine! but that's not the problem!

when the tabbar loads the first page works perfectly fine with all the animations and everything! the problem begins when i switch to next tab and then go back to my first page and find it with no animation! it just awkwardly slides to right to show the next viewController as if hero is not enabled (tho i checked and indeed it was enabled for both vc's and the navigation controller)

What did you expect to happen?

for animations to work!

What happened instead?

they did not!

General Information

  • Hero Version: 1.6.1

  • iOS Version(s): 13

  • Swift Version: 5

  • Devices/Simulators: iPhone 13 pro max

  • Reproducible in Examples? (Yes/No): yes

SaeeSaadat avatar Apr 03 '22 08:04 SaeeSaadat

https://user-images.githubusercontent.com/61188645/161418895-cf9a231a-db6e-4e4d-b13f-2d59c786219a.mov

here's a little demo of what's happening! btw you see how everything FLASHES while the transition is happening! what's that all about? it's like everything get's 1.0 alpha and then goes back to normal it's weird!

SaeeSaadat avatar Apr 03 '22 08:04 SaeeSaadat