Due to the removal of legacy code, there are a few breaking changes in this new version that affect both template writers as well as developers. We've provided a migration guide to help you through these changes, which you can find here: Migration Guide for 2.0
- Fixed color's hex value rounding error.
Yusuke Onishi #19 - Improved format string regex to handle escaped "%"s that precede a variable.
Tamas Lustyik #29
- Removed deprecated variables. See SwiftGenKit#5 for more information.
David Jennes #35 #42
- Throw an error if a format string has mismatching types for the same placeholder position.
David Jennes #44 - Added support for multiple string tables.
David Jennes #41 - Storyboards now provide a
platform
identifier (iOS, macOS, tvOS, watchOS).
David Jennes #45 - Added support for multiple color palettes.
David Jennes #40
- Fix swiftlint errors on enum names not conforming to the Swift 3 syntax.
Liquidsoul #31 - Switch to a DOM-based XML parser.
David Jennes #18 #38 - Images: switch back from
actool
to an internal parser to fix numerous issues with the former.
David Jennes #43 - Refactor the colors parser into a generic parser that will invoke the correct type-specific parser based on the file extension. This allows us to support multiple input files.
David Jennes #40 - Refactor all parsers to conform to a
Parser
protocol to unify the interfaces.
David Jennes #46
- Don't convert colors to the calibrated RGB color space if it isn't needed. David Jennes #23
- More variables have been deprecated, while new variables have been added.
David Jennes #5 #13 #27 #33- The
strings
,structuredStrings
andtableName
have been replaced bytables
, which is an array of string tables, each with aname
and astrings
property. - For each string, the
params
variable and it's subvariables (such asnames
,count
, ...) have been replaced bytypes
, which is an array of types. enumName
,sceneEnumName
andsegueEnumName
have been replaced byparam.enumName
,param.sceneEnumName
andparam.segueEnumName
respectively. Templates should provide a default value for these in case the variables are empty.
- The
- Added the
path
variable to the fonts context (so that we can use it to genrateInfo.plist
entries and such).
Olivier Halligon #25
- Switch from Travis CI to Circle CI, clean up the Rakefile in the process.
David Jennes #10 #28 - We can now re-generate the contexts used for testing by using the "Generate Contexts" Xcode scheme.
David Jennes #14 - Documented the input & output of each parser.
David Jennes #24
- Update
PathKit
dependency to 0.8.0
- Asset catalog parser: ignore unsupported types (such as appiconset).
David Jennes #7
See SwitftGen's own CHANGELOG pre SwiftGen 4.2 version, before the refactoring that led us to split the code in frameworks