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
Feature/uiimage support #382
Conversation
Hi Eugene, You don't need to write your extension, you can use something like this:
|
Hi @ystrot, The benefits of an
Wouldn't it be great to have such feature as a part of the lib and not a workaround? |
when use MacawView, it has to be in main thread. however, we need to get the image in background thread. @ystrot |
Hi @ystrot, |
I've noticed that turning an SVG into UIImage works only when MacawView used for that conversion is actually added to view hierarchy. I guess that doesn't satisfy many use cases. |
Hello, @lubiluk, why do you think so? For me this extension working for a case, when MacawView not in view hierarchy right now. Can you explain your problem if it exists in little details? |
Now when I tested it again it renders an image just fine. Sorry! |
Hi Eugene, Thanks you for your proposal. Now this feature available through Sorry we didn't take your original PR. Final implementation was quite different from the solution you provided, in particular:
Anyway, let us know if you'll find something else to improve in Macaw and we'll be happy to approve your work next time. |
Hi,
I'm trying to implement an extension to create
UIImage
from SVG file.I used
NodeRenderer.renderToImage()
for that. For some reason the image is always empty.Can anybody advise me what is wrong here? Are there any plans to have such functionality?
Thanks