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 usedBundle
using thebundle
orlookupFunction
template parameters.
Arnaud Dorgans #763 - โ Added
config generate-xcfilelist
subcommand to generate input and outputxcfilelist
s based on your configuration file. These files should then be used in an Xcode build step that executesswiftgen 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 isrgba
.
@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 ofBool
values asInteger
in some cases.
@fortmarek Olivier Halligon #779 - ๐ JSON/Plist/YAML: fixed issue with
inline
templates which incorrectly generated1
/0
as values, instead oftrue
/false
as expected.
David Jennes #779 #783 - ๐ JSON: the parser now correctly recognizes
0
and1
asInt
(instead ofBool
).
David Jennes #786
Internal Changes
- ๐ฆ The built-in templates will now correctly handle Swift Package Manager resources, using