cruisediary / Pastel

🎨 Gradient animation effect like Instagram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to continue the gradient animation on a different ViewController?

parthsaxena opened this issue · comments

When running a gradient animation on one ViewController, is it possible to continue the same animation from its current state on a different ViewController upon transitioning?

@parthsaxena you can add the PastelView directly to the key window and make your container views transparent.

How could I go about this? I attempted to do so, and it kind of works. However, when transitioning to/from viewcontrollers, the screen goes black for a brief second before continuing the animation.

Sorry, missed this one. You have to deal somehow with these transition glitches, because UINavigationController push transition expect views with non alpha background colors. I handled this by providing my own push transition animation with Hero.