GitPedia
Nirma

Nirma/Default

Modern interface to UserDefaults + Codable support

4 Releases
Latest: 7y ago
Swift 53.0.0Latest
NirmaNirma·7y ago·April 8, 2019
GitHub

This release is simply project modernization for Swift 5.

The Cleaner2.1.0
NirmaNirma·8y ago·January 7, 2018
GitHub

This release introduces adds a new `clear()` method that adds a method for deleting `Default` objects. Thanks @nitrag for putting this together!

To the point2.0.0
NirmaNirma·8y ago·November 20, 2017
GitHub

📦 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 `UserDefaults` with Default is now accomplished with: `write()` or `write(withKey:)`
  • Reading an object from `UserDefaults` is now accomplished with `read()` or `read(forKey:)`
  • `defaultValue` has been added to the protocol, the default implementation returns `nil` can 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!1.0.0
NirmaNirma·8y ago·October 19, 2017
GitHub

This is the initial release of `Default`!