Releases: cheesetan/SwiftPersistence
Releases · cheesetan/SwiftPersistence
Release 1.1.2
Release 1.1.1
This release contains no breaking changes from the previous release, and instead implements some code optimisations. The most major change are:
- Writes are now handled on a different thread
- Read operations, if no cached value is available, will try to read from the storage every time read is called, using the provided default value as a fallback, until a value is found or a write operation is performed. In the previous version, it would only load from storage on init and if the value was unavailable then, the value would not be able to use the stored value. In this release, that has been changed.
Release 1.1.0
Release 1.1.0
Changes, additions, and updates:
- Added store parameter
@Persistent
@Persistent
can now store its encoded JSON String in either@AppStorage
or FileManager- Added documentation for store methods
- Made syntax resemble
@AppStorage
's - Default value is now provided at the end of the declaration, like any other variable
Release 1.0.0
Release 1.0.0
This is the first release of SwiftPersistence! Should you encounter any issues, please leave a new issue on this repo. Any contributions and PRs to this repo are welcomed! :)
Changes, additions, and updates:
- Added
@Persistent
@Persistent
works with any Codable types- Added documentation to
@Persistent