SwiftGen-Storyboard v0.7.0 Release Notes

  • ✨ Enhancements

    • Allow using custom templates by name.
      #42 #50
      • Now the -t flag expect a template name (defaults to default), and will search a matching template in Application 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.
    • 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 on UIViewController to accept a StoryboardSegue as parameter.
      You can now for example call vc.performSegue(UIStoryboard.Segue.Wizard.ShowPassword).
      #37

    0️⃣ SwiftGen now comes bundled with some alternate templates, especially colors-rawValue, images-allvalues and storyboards-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 a static let allValues array.
      Ahmed Mseddi & Guillaume Lagorce #44
    • 🛠 Fix issue with Storyboards without any StoryboardID (all scenes being anonymous) not extending StoryboardScene.
      #36