SwiftGen-L10n v6.6.0 Release Notes

  • ๐Ÿ”„ Changes in core dependencies of SwiftGen

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ›  Strings: due to the bugfix for fallback translations, custom lookupFunctions will need to accept 3 arguments (table, key and value), up from 2 arguments (table and key).
      David Jennes #964

    ๐Ÿ—„ Deprecations

    • โœ… The Swift 4 templates are now deprecated. This means we will no longer test if the generated output is valid Swift code. We will still try to keep these up-to-date with context changes.
      David Jennes #955
    • ๐Ÿ“š Our spacing & trimming "hack" is now considered deprecated, and in the next major version we'll switch to Stencil's new "smart" trimming behaviour (see Stencil documentation for more information). Our built-in templates have already switched to this modern behaviour, you can try it with your own templates by using the --experimental-modern-spacing flag.
      David Jennes #977
    • ๐Ÿฑ XCAssets: some old properties & parameters are being deprecated. Read the migration guides for more information.
      David Jennes #978

    ๐Ÿ†• New Features

    • โž• Added support for --quiet/-q flag, to suppress all logs (except errors).
      Andre113 #823 #846
    • CoreData: ensure generated classes are final when model isn't abstract.
      grsouza #940
    • โž• Added .artifactbundle release uploads to support SE-0325 Swift Plugins.
      nicorichard #913 #926
    • ๐ŸŒ Strings: added support for .strings files comments. The built-in templates will now use them for comments instead of the translation of a key.
      CraigSiemens #563 #813
    • ๐Ÿ‘ CoreData: support derived attributes.
      David Jennes #928 #961
    • โž• Added an experimental flag --experimental-modern-spacing to enable modern spacing control, see Stencil documentation for more information. It will disable our own trimming "hack", and enable Stencil's "smart" trimming.
      David Jennes #977
    • ๐Ÿฑ XCAssets & Fonts: added support for SwiftUI. You can now easily access colors images, symbols and custom fonts from your SwiftUI code.
      David Jennes #979

    ๐Ÿ› Bug Fixes

    • CoreData: ensure fetched properties use the right class name.
      David Jennes #936 #960
    • CoreData: now correctly generate code for OptionSet attributes by setting the "User Info" key nonOptionalInit to true.
      David Jennes #727 #965
    • Fonts: fix file-type check in sandboxed environments.
      David Jennes #952 #967
    • ๐Ÿ›  Fixed Stencil tags that can refer to other templates, such as the include tag.
      David Jennes #950 #959
    • ๐ŸŒ Strings: now correctly provides the default translation as fallback.
      David Jennes #381 #937 #964

    Internal Changes