SwiftGen v6.3.0 Release Notes
Release Date: 2020-08-04 // over 2 years ago-
๐ Deprecations
- ๐ Fonts: the generated
Font
typealias (toUIFont
/NSFont
) is deprecated and will be removed in the next major release.
David Jennes
#728
๐ New Features
- ๐ Strings: support for plurals declared in
.stringsdict
files.
Florian Fittschen
#184
#634 - ๐ Fonts: the templates now support a new
fontTypeName
template parameter that you can use to change the name of thestruct
representing a font to something else.
David Jennes
#728 - ๐ Fonts: the templates now support a new
fontAliasName
that you can use to change thetypealias
's name fromFont
to something else. For example: this is useful when working with SwiftUI which already defines aFont
type. Note that as thistypealias
is deprecated (see deprecations above), this template parameter will also be removed in the next major release.
David Jennes
#647
#728 - ๐ CoreData: Deprecates
fetchRequest()
and addsmakeFetchRequest()
to avoid ambiguous function usage.
David Rothera
#726 - ๐ XCAssets: image assets now load faster on macOS if they're in the
main
bundle. MacOS only provides a caching mechanism for images in themain
bundle, for other cases you may need to provide your own caching mechanism as needed.
David Jennes
#648
#733 - ๐ Fonts/IB/JSON/Plist/Strings/XCAssets: all templates that load data at runtime from a bundle now support a
bundle
template parameter, which you can use to override the bundle from which resources are loaded. Check out the template specific documentation for more information. For an in-depth explanation, also check the customize loading of resources article.
David Jennes
#737 - ๐ Fonts/IB/JSON/Plist: Similar to the
strings
templates, these templates now support alookupFunction
template parameter, which allows you to provide your own resource lookup mechanism at runtime. Check the template specific documentation for more information. For an in-depth explanation, also check the customize loading of resources article.
David Jennes
#738
๐ Bug Fixes
- Strings: fix incorrect interpretation of format placeholders when there were missing positional parameters (e.g.
"%[email protected]"
without a%1$โฆ
defined).
@AliSoftware
#634
- ๐ Fonts: the generated