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

Question: How did you do to manage the updating bacground without concurrency issues... #23

Open
bryanlaratovar opened this issue Jul 25, 2017 · 1 comment

Comments

@bryanlaratovar
Copy link

Hey pal, I'm working on something that uses this kind of background, yours works like a champ.. But I don't get how you update the background without having issues with the other tasks, like writing on the keyboard without getting stuck while the animation occurs ...

I tried to use dispatchQue but seems like I'm missing something out...

Would you mind giving me a little hint on how did you achieved such thing?

Thanks!

@zntfdr
Copy link

zntfdr commented Jul 26, 2017

Hi there!
I'm not the author/maintainer of the repo, but the project core is just a sub-200-lines file. You can easily go ahead and study what Pastel does 😊.

From a first look, I believe the secret lays on the CALayer drawAsynchrnously boolean (here).

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