Android->iOS color format is not transposed #868
Answered
by
ClarkBattle-McFee
ClarkBattle-McFee
asked this question in
Q&A
-
I have a question about the colors. I have an android colors.xml that I would like to use to generate a Colors.swift. SwiftGen works in that it generates the file, however, android color format is ARGB, whils iOS' color format is RGBA. SwiftGen does not do the translation.
becomes
when it should be
Is there a way to fix this? |
Beta Was this translation helpful? Give feedback.
Answered by
ClarkBattle-McFee
Aug 18, 2021
Replies: 1 comment 2 replies
-
I just found this https://github.com/SwiftGen/SwiftGen/blob/stable/Documentation/Parsers/colors.md#customization
Where should I put the colorFormat: argb? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
djbe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just found this https://github.com/SwiftGen/SwiftGen/blob/stable/Documentation/Parsers/colors.md#customization
So it looks like there is support for colorFormat: argb. I'm not clear on where to put that though. My swiftgen.yml looks like this
Where should I put the colorFormat: argb?