Changelog History
Page 4
-
v0.7.4
โจ Enhancements
- โ Added View Controller Placeholders support.
Viacheslav Karamov #61
- โ Added View Controller Placeholders support.
-
v0.7.3
๐ Fixes
- โช Restructured storyboard templates to work around an LLVM issue with nested types.
Ryan Booker #57
Scenes and Segues are now referenced via
StoryboardScene.<Storyboard>
andStoryboardSegue.<Storyboard>.<Segue>
- โช Restructured storyboard templates to work around an LLVM issue with nested types.
-
v0.7.2
โจ Enhancements
โ Adding comments to generated color enums which allow you to see the color in the QuickHelp documentation.
๐ The default translation of strings are now added as documentation comments to the enum cases.
You can add translations to your own templates by using thestring.translation
variable.
@MrAlek #58 #60
๐ Fixes
- ๐ Fix an issue with the colors template due to an Apple Bug when building in Release and with WMO enabled.
#56
-
v0.7.1
๐ Fixes
- ๐ Fix issue with
swiftgen strings
that were using the colors templates instead of the strings template by default.
@ChristopherRogers #54
- ๐ Fix issue with
-
v0.7.0
โจ Enhancements
- Allow using custom templates by name.
#42 #50- Now the
-t
flag expect a template name (defaults todefault
), and will search a matching template inApplication Support
first, then in the templates bundled with SwiftGen. - You can still specify a template by path using
-p
. - For more info, see this dedicated documentation.
- Now the
- You can now list all templates available (both bundled templates and custom ones) using the
swiftgen templates
command.
#42 #50 - โ Add a
performSegue(_:sender:)
extension onUIViewController
to accept aStoryboardSegue
as parameter.
You can now for example callvc.performSegue(UIStoryboard.Segue.Wizard.ShowPassword)
.
#37
0๏ธโฃ SwiftGen now comes bundled with some alternate templates, especially
colors-rawValue
,images-allvalues
andstoryboards-lowercase
, in addition to the default templates.๐ Fixes
- Now
swiftgen storyboards
doesn't generate duplicate enum cases for identical segues (those having equal identifiers and shared custom class).
@filwag #43 - ๐ Fix compilation issue for storyboards without any scene.
Viacheslav Karamov #47 - Propose an alternate template using lowercase names, especially for when storyboard identifiers match view controller class names.
Viacheslav Karamov #48 - Introduced an
image-allvalues
template that exposes the list of all images in astatic let allValues
array.
Ahmed Mseddi & Guillaume Lagorce #44 - ๐ Fix issue with Storyboards without any StoryboardID (all scenes being anonymous) not extending
StoryboardScene
.
#36
- Allow using custom templates by name.
-
v0.6.0
๐ New Features: Templates
SwiftGen
now uses Stencil template engine to produce the generated code.- This means that the generate code will be easier to improve.
- This also means that you can use your own templates to generate code that better suits your needs and preferences, using
swiftgen โฆ --template FILE โฆ
.
๐ Fixes
-
v0.5.2
๐ New Features
- It's now possible to specify which chars should not be used when generating
case
identifiers.
@Igor-Palaguta #34
- It's now possible to specify which chars should not be used when generating
-
v0.5.1
๐ Fixes
- Installing via
rake install
orbrew install
will now copy the Swift dylibs too, so thatswiftgen
installation won't depend on the location of your Xcode.app (so it'll work on every machine even if you rename your Xcode). - ๐ Fixed links in Playground and Licence headers in source code.
- Installing via
-
v0.5.0
๐ New Features
- ๐ Migrating to Commander to parse the CLI arguments.
23 #30 swiftgen
is now a single binary, and the subcommand names have changed to be more consistent.
#30- ๐ New
--output
option.
#30
๐ > You must now use the subcommands
swiftgen images
,swiftgen strings
,swiftgen storyboards
andswiftgen colors
. Seeswiftgen --help
for more usage info.๐ Fixes
- ๐ Fix color parsing with absent alpha.
@Igor-Palaguta #28
- ๐ Migrating to Commander to parse the CLI arguments.
-
v0.4.4
- โก๏ธ Updated Unit tests for latest Swift 2.0 & tested against Xcode 7.1
- ๐ Fix small typos in code
- Guard against empty
enums