Pastel icon indicating copy to clipboard operation
Pastel copied to clipboard

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

Open bryanlaratovar opened this issue 7 years ago • 1 comments

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!

bryanlaratovar avatar Jul 25 '17 16:07 bryanlaratovar

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).

zntfdr avatar Jul 26 '17 04:07 zntfdr