Snowtype for Swift - add the ability to configure the namespace for the generated types

Hi, there!

We’ve just started to use the snowtype for generating data structures in the iOS project. We’re using the latest v0.12.0 snowtype library. Even though everything works pretty much smoothly we’ve noticed that the generated code is put just into the global namespace. In most cases this shouldn’t be a problem, however, this might cause the name collision issue quite easy. Ideally, there should be an option to either:

  • configure the namespace the generated types will be wrapped with - in the Swift world usually an enum definition plays a role of a namespace;
  • configure the name prefix which will be added at the beginning of all generated types.

Adding a namespace is a more preferable approach to that issue, in our opinion. If there would be a such option it would be a big improvement of the generated code!

Thank you!

Best regards,
Serhii

Hey Serhii!

Edwin from Support here! If you are using Snowtype, I would assume you are an active customer?

If that’s the case, it would be a better idea to reach us through the Support channels.

support.snowplow.io
support@snowplow.io

You need to use an email address registered to your company domain.

Cheers!

Hi, Edwin!

Thank you for answering. Indeed, we’re the active customer of Snowplow. Thank you for advising of reaching you out through the support email. I’ll relay my original message there.

Best regards,
Serhii