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

Update Swift icon generation to output properties as members. #64

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

pixlwave
Copy link
Contributor

@pixlwave pixlwave commented Dec 15, 2023

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.

Copy link
Member

@robintown robintown left a 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.
Copy link
Member

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

Copy link
Contributor Author

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 = [
Copy link
Member

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?

Copy link
Contributor Author

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

@pixlwave pixlwave merged commit f006a14 into main Jan 9, 2024
@pixlwave pixlwave deleted the doug/swift-tweaks branch January 9, 2024 09:56
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

Successfully merging this pull request may close these issues.

None yet

2 participants