This repository has been archived by the owner on Sep 6, 2018. It is now read-only.
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 runswiftgen
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 useswiftgen storyboards --param module=YourAppModuleName …
when invoking SwiftGen to inject it manually instead.
- It works by checking the environment variable
New Features
- Use an explicit bundle parameter to support frameworks for all templates.
@NachoSoto
@djbe
SwiftGen/SwiftGen#255
#17 - Use
enum
instead ofstruct
for namespacing in all templates.
@djbe
#7 - Reworked templates to get rid of deprecated Stencil variables.
@djbe
#8
#9
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