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

Project Samples

Project Activity

See All Activity >

Categories

System

License

MIT License

Follow Defaults

Defaults Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Defaults!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Swift

Related Categories

Swift System Software

Registered

2024-08-26