SwiftGen CHANGELOG


5.2.0

Changes in other SwiftGen modules

New Features

Bug Fixes

5.1.2

Internal Changes

5.1.1

Changes in other SwiftGen modules

Bug Fixes

5.1.0

Changes in other SwiftGen modules

New Features

5.0.0

⚠️ 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 for a list of changes you'll need to apply.

Changes in other SwiftGen modules

Breaking Changes

Notable breaking changes from other SwiftGen repositories

New Features

Internal Changes

Notable internal changes from other SwiftGen repositories

4.2.1

Changes in other SwiftGen modules

Bug Fixes

Internal Changes

4.2.0

Changes in other SwiftGen modules

Bug Fixes

Notable bug fixes from other SwiftGen repositories

New Features

Notable new features from other SwiftGen repositories

Deprecations

In preparation for an upcoming cleanup of SwiftGen to remove some legacy code as well as Stencil old variables, tags and filters, and change the default templates to Swift 3, some things are being deprecated and will be removed in the next major version 5.0.

As a result, if you wrote custom templates, you should already prepare for the upcoming 5.0 by migrating your templates to use the new variables (already avaiable in SwiftGen 4.2 / SwiftGenKit 1.0).

See #244 and the Migration Guide in the Wiki for a list of deprcations and their replacements.

Internal changes

Note: The next minor version will focus on bringing more documentation for all this new structure and improve ease of future contributions.

4.1.0

Bug Fixes

New Features

Internal changes

4.0.1

Bug Fixes

Internal changes

4.0.0

Breaking Changes

New Features

3.0.1

3.0.0

💡 You can now create your custom templates more easier than ever, by cloning an existing template!

e.g. to clone the default strings-default.stencil template:

Important Notes

If you're using one of the bundled templates, all of them have been updated appropriately.

2.0.0

Note: The Stencil context keys (the name of the variables used in templates) for storyboard has changed a bit.
Especially, class has been renamed into customClass (see #131)
to better describe the intent (as this isn't defined if there is no custom class set in the Storyboard), and
new keys isBaseViewController and baseType has been added.

This means that if you did implement your own custom templates for storyboards (instead of using the bundled ones),
you'll have to remplace {{class}} by {{customClass}} in those storyboard templates, otherwise they'll probably
stop working as expected. That's the main reason why the version has been bumped to a major version 2.0.0.

1.1.2

1.1.1

1.1.0

1.0.0

0.8.0

0.7.6

Enhancements

Fixes

0.7.5

Enhancements

0.7.4

Enhancements

0.7.3

Fixes

Scenes and Segues are now referenced via StoryboardScene.<Storyboard> and StoryboardSegue.<Storyboard>.<Segue>

0.7.2

Enhancements

colors QuickHelp

Fixes

0.7.1

Fixes

0.7.0

Enhancements

SwiftGen now comes bundled with some alternate templates, especially colors-rawValue, images-allvalues and storyboards-lowercase, in addition to the default templates.

Fixes

0.6.0

New Features: Templates

Fixes

0.5.2

New Features

0.5.1

Fixes

0.5.0

New Features

You must now use the subcommands swiftgen images, swiftgen strings, swiftgen storyboards and swiftgen colors. See swiftgen --help for more usage info.

Fixes

0.4.4

0.4.3

0.4.2

0.4.1

0.4.0

0.3.0

^(†) because it feels more explicit that calling a function like UIStoryboard.Scene.Wizard.validatePasswordViewController() will actually instantiate a new ViewController, rather than returning an existing one.

0.2.0

0.1.0

Considered to be the first cleaned-up version, far from finished but really usable with clean code.

0.0.4

0.0.3

0.0.2

0.0.1

Initial version: