SwiftGen-Assets v6.6.0 Release Notes
-
๐ Changes in core dependencies of SwiftGen
๐ฅ Breaking Changes
- ๐ Strings: due to the bugfix for fallback translations, custom
lookupFunction
s 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-spacing
flag.
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/-q
flag, to suppress all logs (except errors).
Andre113 #823 #846 - CoreData: ensure generated classes are
final
when model isn't abstract.
grsouza #940 - โ Added
.artifactbundle
release uploads to support SE-0325 Swift Plugins.
nicorichard #913 #926 - ๐ Strings: added support for
.strings
files comments. The built-in templates will now use them for comments instead of the translation of a key.
CraigSiemens #563 #813 - ๐ CoreData: support derived attributes.
David Jennes #928 #961 - โ Added an experimental flag
--experimental-modern-spacing
to enable modern spacing control, see Stencil documentation for more information. It will disable our own trimming "hack", and enable Stencil's "smart" trimming.
David Jennes #977 - ๐ฑ XCAssets & Fonts: added support for SwiftUI. You can now easily access colors images, symbols and custom fonts from your SwiftUI code.
David Jennes #979
๐ Bug Fixes
- CoreData: ensure fetched properties use the right class name.
David Jennes #936 #960 - CoreData: now correctly generate code for
OptionSet
attributes by setting the "User Info" keynonOptionalInit
to 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
include
tag.
David Jennes #950 #959 - ๐ Strings: now correctly provides the default translation as fallback.
David Jennes #381 #937 #964
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 #966 - โก๏ธ Updated to Stencil 0.15 and StencilSwiftKit 2.10.
David Jennes #977 - โ Added
Difference
library for easier testing of context differences.
David Jennes #981
- ๐ Strings: due to the bugfix for fallback translations, custom