Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
swiftgen-6.6.0.artifactbundle.zip | 2022-07-31 | 3.4 MB | |
swiftgen-6.6.0.zip | 2022-07-31 | 3.4 MB | |
6.6.0.tar.gz | 2022-07-31 | 9.0 MB | |
6.6.0.zip | 2022-07-31 | 9.7 MB | |
README.md | 2022-07-31 | 5.8 kB | |
Totals: 5 Items | 25.6 MB | 1 |
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