SwiftGen-Storyboard v5.0.0 Release Notes

  • πŸš€ ⚠️ This major version is a big milestone in which a lot of refactoring and cleaning has been done. Many features added over previous releases have been reworked and unified, while also preparing SwiftGen for future additions. This means that you'll need to adapt your command line invocations and custom templates to work with this new major version.

    πŸ“š Read the [SwiftGen 5.0 Migration Guide](Documentation/MigrationGuide.md#migrating-to-swiftgen-50) for a list of changes you'll need to apply.

    πŸ”„ Changes in core dependencies of SwiftGen

    πŸ’₯ Breaking Changes

    • βœ‚ Removed deprecated CLI options. Please consult the migration guide should you still use them.
      David Jennes #301
    • 0️⃣ Disable default value for named template option and ensure that there is a template option.
      Liquidsoul #283
    • 🚚 Templates are now grouped by parser on the filesystem. This is only important if you had custom templates in the Application Support directory. To migrate your templates, place them in a subfolder with the name of the parser, and remove the prefix of the template filename.
      David Jennes #304
    • 🍱 The images command has been renamed to xcassets to better reflect its functionality.
      Olivier Halligon #317

    Notable breaking changes from other SwiftGen repositories

    • πŸ“š Many deprecated templates have been removed (or merged), and others have been renamed to reflect new behaviours. Please check the [templates migration guide](Documentation/templates/MigrationGuide.md#deprecated-templates-in-20-swiftgen-50) for more information.
      David Jennes SwiftGen/templates#47
    • πŸ“š There have been some breaking changes in the generated code for storyboards. Please check the [templates migration guide](Documentation/templates/MigrationGuide.md#deprecated-templates-in-20-swiftgen-50) for more information, where we also provide a compatibility template.
      Olivier Halligon SwiftGen/templates#65
    • βœ‚ Removed deprecated template context variables, and restructured many others. Please check the [SwiftGenKit migration guide](Documentation/SwiftGenKit%20Contexts/MigrationGuide.md#swiftgenkit-20-swiftgen-50-migration-guide) for more information.
      David Jennes SwiftGen/SwiftGenKit#5
    • πŸ“š Some filters have been removed in favour of Stencil's built in versions, and other filters have been updated to accept parameters. Please consult the StencilSwiftKit migration guide for more information.
      David Jennes SwiftGen/StencilSwiftKit#5 SwiftGen/StencilSwiftKit#6

    πŸ†• New Features

    Internal Changes

    Notable internal changes from other SwiftGen repositories

    • πŸ”Š Switch back from actool to an internal parser to fix numerous issues with the former. This fixes issues a few people encountered when using asset catalogs that contained some of the less common set types.
      David Jennes #228 SwiftGen/SwiftGenKit#43