-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update Swift icon generation to output properties as members. #64
Conversation
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.
Looks reasonable 👍
@@ -0,0 +1,30 @@ | |||
<% | |||
// | |||
// Copyright 2019 Alaska Air Group or its affiliates. All Rights Reserved. |
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.
Is this intentional? (this file is actually code from another org?)
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.
Ah yeah I should add a comment that this is based on any.swift.template from the style dictionary source with a small tweak to remove the static
keyword.
Germain actually opened a PR to handle this upstream but so far it hasn't been reviewed.
} | ||
} | ||
|
||
const swiftKeywords = [ |
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.
Could you add a link to where you've sourced these from?
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.
Updated and added some more that I missed (in reality there is one icon called public
that caused issues but seemed worthwhile to handle as many as possible).
Rather than manually mapping the icons in compound-ios this change creates them in a format that is directly usable for us. Part of element-hq/element-x-ios#2101
The first commit contains all the changes to the generator, the second contains the updated assets.
We should do similar for colours too, although we would need element-hq/compound#93 fixed before that is possible.