Default v2.0.0 Release Notes
Release Date: 2017-11-20 // over 6 years ago-
Summary
🚀 The release's focus is about shortening the read / write method names and adding support for having a default
0️⃣ value for when the value being read is currently not stored in the users defaults.🔄 Changes
- 0️⃣ Writing an object to
UserDefaults
with Default is now accomplished with:write()
orwrite(withKey:)
- 0️⃣ Reading an object from
UserDefaults
is now accomplished withread()
orread(forKey:)
- 0️⃣
defaultValue
has been added to the protocol, the default implementation returnsnil
can be customized
0️⃣ to return a default value when nothing exists in defaults.
🍱 @Cyberbeni Thanks so much for the pull request! Great work! 💯
- 0️⃣ Writing an object to