Replies: 1 comment
-
Might be better if this could be achieved at the template level, instead of messing with the context itself, as that would obviously be a massive breaking change for all our users. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Toying with SwiftGen while evaluating for a project, I implemented a simple method to flatten the name spacing created by the structured strings template.
For example, having two keys
an_example_key
andan_example_value
currently creates enums accessed byAn.Example.Key
andAn.Example.Value
. The implementation groups together the enums with a single element, to produce an output likeAnExample.Key
andAnExample.Value
.I have a rough patch that I can clean up if there is interest / a PR would be accepted.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions