Releases: orchetect/swift-prefs
Releases · orchetect/swift-prefs
Release list
1.1.1
Changed
- JSON coding for
Codabletypes is now offered inDataorStringencoding flavorsJSONCodableprotocol implementations were previously constrained the underlying encoding to beData.All
JSONCodabletypes have been disambiguated asJSONDataCodableand a new set of corresponding types forJSONStringCodablehave been added to allow usingStringas the underlying encoding. CodablePrefsCodable: Moved encoder/decoder requirements to extension to allow more flexible implementations
Maintenance
- Updated README
- Internal cleanup
1.1.0
New
PrefsSchema: Added new@Storageand@StorageModeattributes forstorageandstorageModeproperties
(See README for example)PrefsStorage: Added convenient static constructors for included storage classes.userDefaults,.userDefaults(suite:)in place ofUserDefaultsPrefsStorage().dictionary,.dictionary(root:)in place ofDictionaryPrefsStorage()
Changed
- Renamed
PrefsSchemaModetoPrefsStorageMode
Fixed
- Fixed issue where
@Prefmacro would prevent adding access level attributes