Pastel icon indicating copy to clipboard operation
Pastel copied to clipboard

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

Open parthsaxena opened this issue 6 years ago • 3 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 avatar Mar 01 '18 20:03 parthsaxena

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

av0c0der avatar Mar 02 '18 18:03 av0c0der

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.

parthsaxena avatar Mar 04 '18 02:03 parthsaxena

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.

av0c0der avatar Dec 19 '18 20:12 av0c0der