SwiftGen-Assets v0.7.0 Release Notes
-
✨ 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.