Releases: Nirma/Default
Releases · Nirma/Default
Swift 5
The Cleaner
This release introduces adds a new clear() method that adds a method for deleting Default objects.
Thanks @nitrag for putting this together!
To the point
Summary
The release's focus is about shortening the read / write method names and adding support for having a default
value for when the value being read is currently not stored in the users defaults.
Changes
- Writing an object to
UserDefaultswith Default is now accomplished with:write()orwrite(withKey:) - Reading an object from
UserDefaultsis now accomplished withread()orread(forKey:) defaultValuehas been added to the protocol, the default implementation returnsnilcan be customized
to return a default value when nothing exists in defaults.
@Cyberbeni Thanks so much for the pull request! Great work! 💯
Codable all the things!
This is the initial release of Default!