Pastel icon indicating copy to clipboard operation
Pastel copied to clipboard

WORKAROUND: Animation stops when another view controller is presented

Open VatanaChhorn opened this issue 3 years ago • 0 comments

For those who are still having these issues, and looking for an approach to it, I highly recommend using Hero for the transition between view controllers instead of the default one.

From the Hero documentation

"It won't modify any of your views' states other than hiding them during the animation,"

which really suitable for our case here since the previous view's just hiding, thus the transition doesn't interrupt the animation of the gradients at all.

You can find HERO library through this link: https://github.com/HeroTransitions/Hero

Happy coding everyone : )

VatanaChhorn avatar Jun 01 '21 11:06 VatanaChhorn