Store key-value pairs persistently across launches of your app. It uses UserDefaults underneath but exposes a type-safe facade with lots of nice conveniences. It's used in production by all my apps (4 million+ users).
Features
- You declare the type and default value upfront
- Property wrapper that updates the view when the UserDefaults value changes
- You can store any Codable value, like an enum
- You can store any NSSecureCoding value
- Observe changes to keys
- The data is stored as JSON-serialized values
- You can serialize and deserialize your own type in your own way
Categories
SystemLicense
MIT LicenseFollow Defaults
Other Useful Business Software
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Defaults!