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

Latest commit

 

History

History
91 lines (69 loc) · 4.38 KB

CHANGELOG.md

File metadata and controls

91 lines (69 loc) · 4.38 KB

Templates CHANGELOG


1.1.0

Bug Fixes

New Features

Internal Changes

  • Switch from Travis CI to Circle CI, clean up the Rakefile in the process.
    David Jennes #24 #40
  • Disable SwiftLint conditional_returns_on_newline in the font template.
    Tom Baranes #33
  • Updated templates to use Stencil 0.9.0 features, such as for loops with a where condition.
    David Jennes #42

1.0.0

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

Pre-1.0.0

See SwitftGen's own CHANGELOG pre SwiftGen 4.2 version, before the refactoring that led us to split the code in frameworks

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.