SwiftGen v6.4.0 Release Notes

Release Date: 2020-10-07 // over 2 years ago
  • ๐Ÿ†• New Features

    • ๐Ÿ“ฆ The built-in templates will now correctly handle Swift Package Manager resources, using Bundle.module if it's available. As before, you can override the used Bundle using the bundle or lookupFunction template parameters.
      Arnaud Dorgans #763
    • โž• Added config generate-xcfilelist subcommand to generate input and output xcfilelists based on your configuration file. These files should then be used in an Xcode build step that executes swiftgen config run. Don't forget to regenerate the file lists after adding/removing resources in your project in a way that might impact them.
      @CraigSiemens #441
    • 0๏ธโƒฃ Colors: the XML parser now accepts a colorFormat option, used to change the color format. The default format is rgba.
      @kevinstier #562 #768
    • ๐ŸŽ IB: Added support for instantiating scenes while providing a creator block, commonly used for dependency injection. This feature is available in generated code starting from iOS 13, tvOS 13 and macOS 10.15.
      @matsune David Jennes #778

    ๐Ÿ› Bug Fixes

    • โšก๏ธ Plist: Update the parsing strategy (using Codable) to fix parsing of Bool values as Integer in some cases.
      @fortmarek Olivier Halligon #779
    • ๐Ÿ›  JSON/Plist/YAML: fixed issue with inline templates which incorrectly generated 1/0 as values, instead of true/false as expected.
      David Jennes #779 #783
    • ๐Ÿ“œ JSON: the parser now correctly recognizes 0 and 1 as Int (instead of Bool).
      David Jennes #786

    Internal Changes

    • โšก๏ธ Update the Swift version in .swift-version so that the right version is used when building manually (using swiftenv).
      @cfiken #764
    • โšก๏ธ Update Yams from 3.0.0 to 4.0.0.
      @hungrxyz #772
    • โšก๏ธ Updated Pods and Gems dependencies, and Xcode 12.
      David Jennes #782