Releases: juliand665/UserDefault
Releases · juliand665/UserDefault
Suite Support
@UserDefault
now exposes aswasLoadedSuccessful
whether the latest load (initial or manual throughloadValue()
) succeeded, useful for migrating data to an app group.- Specified defaults suites are now actually used rather than always using
.standard
(whoops!) - Selected defaults suite is now exposed publicly.
SwiftUI Integration
I finally found a simple way to integrate the @UserDefault
wrapper with SwiftUI! Not sure why it took me so long, but I decided to add a lightweight wrapper to make it more ergonomic. Use @UserDefault.State
for all your SwiftUI needs :)
Tiny Update
- Updated HandyOperators
Minor Fixes
- Now compatible with tvOS and watchOS
- Improvements to documentation & an actual readme
- Operators now come from a package dependency rather than a file, fixing ambiguity issues when dependents had their own definitions for the same operators.
The Non-Beta Update™
This update applies the changes required and/or possible in the final release of Xcode 11 and Swift 5.1.
- The key no longer has an argument label, since it'll usually be the only argument and its meaning is obvious from the context.
- Default values are now provided as initial values with
=
rather than an explicit argument to the wrapper init. (Because I realized I could easily work around the compiler crash preventing me from doing so earlier.)
Initial Release
Use at your own risk!