HeroTransitions / Hero

Elegant transition library for iOS & tvOS
https://HeroTransitions.github.io/Hero/
MIT License
22k stars 1.72k forks source link

Animation doesn't work when navigationController pushing screen #753

Open ZHNursultan opened 1 year ago

ZHNursultan commented 1 year ago

Why Hero Transition Animation doesn't work when I push a new viewController into UINavigationController or setting as a root view controller?

JoeMatt commented 1 year ago

Gonna need a little more info.

Sample code?

ZHNursultan commented 1 year ago

@JoeMatt of course sorry for late answer It works if I present it. But doesn't if I push.

let onboarding2 = Onboarding2ViewController(viewModel: .init()) onboarding2.hero.isEnabled = true router.push(onboarding2)

router is UINavigationController router.push(onboarding2) is animated true router is hero enabled true

niralishaha25 commented 1 year ago

I am facing same issue on iOS 16

JoeMatt commented 1 year ago

Unfortunately, my time/role on this project is more as a project manager.

If anyone can debug and write a fix, even something that needs some cleanup, I'd be more than happy to test and merge or improve. Still, I don't have the cycles with all my other projects to debug this at the moment, especially since I'm not using Hero myself as my main apps have moved over to SwiftUI.