Skip to content

Android->iOS color format is not transposed #868

Discussion options

You must be logged in to vote

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

colors:
  inputs: ${SRCROOT}/resources/colors.xml
  outputs:
      - templateName: swift5
        output: Colors.swift
        params:
            publicAccess: true
            enumName: ColorEnum

Where should I put the colorFormat: argb?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ClarkBattle-McFee
Comment options

@djbe
Comment options

Answer selected by djbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants