New
6.6.0
Changes in core dependencies of SwiftGen
Breaking Changes
- Strings: due to the bugfix for fallback translations, custom
lookupFunctions will need to accept 3 arguments (table, key and value), up from 2 arguments (table and key).
David Jennes #964
Deprecations
- The Swift 4 templates are now deprecated. This means we will no longer test if the generated output is valid Swift code. We will still try to keep these up-to-date with context changes.
David Jennes #955 - Our spacing & trimming "hack" is now considered deprecated, and in the next major version we'll switch to Stencil's new "smart" trimming behaviour (see Stencil documentation for more information). Our built-in templates have already switched to this modern behaviour, you can try it with your own templates by using the
--experimental-modern-spacingflag.
David Jennes #977 - XCAssets: some old properties & parameters are being deprecated. Read the migration guides for more information.
David Jennes #978
New Features
- Added support for
--quiet/-qflag, to suppress all logs (except errors).
Andre113 #823 #846 - CoreData: ensure generated classes are
finalwhen model isn't abstract.
grsouza #940 - Added
.artifactbundlerelease uploads to support SE-0325 Swift Plugins.
nicorichard #913 #926 - Strings: added support for
.stringsfiles comments. The built-in templates will now use them for comments instead of the translation of a key.
CraigSiemens
Bug Fixes
- CoreData: ensure fetched properties use the right class name.
David Jennes #936 #960 - CoreData: now correctly generate code for
OptionSetattributes by setting the "User Info" keynonOptionalInitto true.
David Jennes #727 #965 - Fonts: fix file-type check in sandboxed environments.
David Jennes #952 #967 - Fixed Stencil tags that can refer to other templates, such as the tag.
Internal Changes
- Updated GitHub Actions to use macOS 12.
David Jennes #956 - Update dependencies such as SwiftLint (and enable some extra rules).
David Jennes #968 #970 - Implement automatic publication using GitHub Actions.
David Jennes #969 - Switched from Commander to Swift's own ArgumentParser library.
David Jennes