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

drawing asynchronous #3952

Closed
milkatgit opened this issue Apr 18, 2019 · 1 comment
Closed

drawing asynchronous #3952

milkatgit opened this issue Apr 18, 2019 · 1 comment

Comments

@milkatgit
Copy link

milkatgit commented Apr 18, 2019

Hi, I have two questions.1. Is the drawing asynchronous? 2. How to know that a drawing has been completed.

@liuxuan30
Copy link
Member

liuxuan30 commented Apr 23, 2019

You must know all UI related tasks are performed on main thread, right?

There are design patterns like delegate to let you know when the drawing is complete. I don't think we provide one yet; not getting any requirement for that. Besides, what's your demand to know it's finished?

By concept, I don't think UIKit or CoreGraphics is designed this way. You never call draw() yourself.

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