v5.0.0-beta.1
Pre-release
Pre-release
sindresorhus
released this
18 May 13:00
·
74 commits
to main
since this release
Please help us try out this beta release. And let us know if something in the migration guide could be improved.
Breaking
- Please read the migration guide.
- Removed
NSSecureCodingKey
andNSSecureCodingOptionalKey
.- You can now just use
Key
instead.
- You can now just use
- Dropped support for Carthage and CocoaPods.
- If you use either of these, you can still use Swift Package Manager just for this package.
Improvements
- Added support for more built-in Swift types.
- Improved the stored representation of many types.
- For example,
Array
is now stored as a native UserDefaults array instead of being stored as a JSON stringified string. Same withSet
andDictionary
.
- For example,
- Enums no longer need to be
Codable
. (Existing usage requires migration) - Added support for storing
NSColor
andUIColor
. - Added
Defaults.Toggle
.