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
Assets: improve colors performance #589
Conversation
Hey 👋 I'm Eve, the friendly bot watching over SwiftGen 🤖 Thanks a lot for your contribution! Seems like everything is in order 👍 You did a good job here! 🤝 Generated by 🚫 Danger |
Tests/Fixtures/Generated/XCAssets/swift3-context-all-allValues.swift
Outdated
Show resolved
Hide resolved
a16aeec
to
6c229e9
Compare
Rebased with changes from feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I'd love for @eaigner to weight in and confirm it fixes the performance issue they observed.
While I can't speak to the performance aspect right now (the code was changed since i reported the issue), the stencil works. |
6c229e9
to
7598811
Compare
Could you try it with your local generated code, replacing the |
I have. But I did not benchmark performance. But since its lazy now, should not be a problem, right? |
c9750d6
to
e827d57
Compare
I think it's safe to assume that the |
e827d57
to
13da009
Compare
When is 6.2 scheduled to release? Would be nice to have this out there. It's almost 2 months now. |
I've been swamped with work these last few weeks, big upcoming release at work. TBH, things are ready for release, just some final checks and changelog/docs updates (see #621). Maybe this weekend, but I can't promise anything. |
Fixes #578.
To use
lazy var
, had to switch tofinal class
with our owninit
. This is better than parsing the color duringinit
as we can keep the@availability
annotation for thecolor
property.