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() or write(withKey:)
    • 0️⃣ Reading an object from UserDefaults is now accomplished with read() or read(forKey:)
    • 0️⃣ defaultValue has been added to the protocol, the default implementation returns nil can be customized
      0️⃣ to return a default value when nothing exists in defaults.

    🍱 @Cyberbeni Thanks so much for the pull request! Great work! 💯