-
Notifications
You must be signed in to change notification settings - Fork 729
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
Impossible to create two same colors #31
Comments
If we remove inheritance from UInt32, and we create something like this:
If you fine with it, I can create PR |
Interesting, I didn't think about such a case. Don't rush on doing the PR though: I'm currently working on a big PR #30 to refactor SwiftGen using Commander, and my current refactor there would make it hard to merge your PR afterwards. Another change I wanted to do afterwards would be to use Stencil (#24) so that people can use custom templates for the generated code. That change will make it way easier to change the generated code, as it will be stored as a clear and readable Stencil template, instead of mixed and hard-coded within the code. Once those two big PRs are done, we could then imagine keeping the current template with As a side note, I think using a dictionary |
@Igor-Palaguta Good news: I just merged the Stencil branch (#24) which was a major refactor. As a result, the |
Very Cool! Thank you Don't know where is good place for custom templates, I created for my project:
|
I think we could at least add these templates with the other ones, so that they'd be installed with Then we could imagine an option flag from the CLI to make it easy to manage and reference them easily instead of having to specify the whole path. First step
Next stepThis move the concept further (and could be done in a separated PR later)
This way people could install custom templates and use them way more easily! |
I think we should actually make that the default template. We should also maybe rename that filter |
Ok, i started a branch One can then either just use Then we could have two templates for each of the 4 tools, depending on each people's style of coding. |
As of now in The default template uses I'm keeping this issue open until #42 is done (at least the first part allowing people to specify a template by name) and you could then integrate your templates so they get installed with SwiftGen by default. |
In colors file I have two identical colors with different name
swiftgen generates two cases with same value, and swift compiler fails with error "Raw value for enum is not unique"
The text was updated successfully, but these errors were encountered: