Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

1.0.0

Compare
Choose a tag to compare
@AliSoftware AliSoftware released this 20 Feb 11:47
· 283 commits to master since this release

The templates tagged with this version are the ones embedded in SwiftGen 4.2.

Internal Changes

  • Initial tagging of templates as part of being split in their own repository.
  • Templates are now linted and unit-tested, to ensure the code generated compiles properly.
    @djbe
    #5
    #6
    #15
    #16

Bug Fixes

  • Use escapeReservedKeywords in all templates — to ensure compilation even for scenes named with a reserved keyword.
    @djbe
    #3
    #14
  • Storyboards templates don't import your app module anymore, removing that annoying warning.
    @djbe
    #19
    • It works by checking the environment variable PRODUCT_MODULE_NAME, which is automatically injected by Xcode if you run swiftgen as part of a Script Build Phase in your Xcode project.
    • If you don't use swiftgen in a Script Build Phase of your Xcode project but manually in the terminal, you can instead use swiftgen storyboards --param module=YourAppModuleName … when invoking SwiftGen to inject it manually instead.

New Features

Deprecations

Note that in preparation for the upcoming SwiftGen 5.0, some variables available in the SwiftGen's Stencil templates have been deprecated and will be renamed. To prepare for SwiftGen 5.0, we strongly advise to migrate your custom templates so they use the new variables (already available in SwiftGen 4.2 / SwiftGenKit 1.0.1) instead of the old ones, so that they will continue to work in SwiftGen 5.0

See the migration guide in SwiftGen's wiki.