Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
parthsaxena opened this issue Mar 1, 2018 · 3 comments

Comments

@parthsaxena
Copy link

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?

@av0c0der
Copy link

av0c0der commented Mar 2, 2018

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

@parthsaxena
Copy link
Author

parthsaxena commented Mar 4, 2018

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.

@av0c0der
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants