Site icon TechHype.io

Defaults – Swifty and modern UserDefaults

Store key-value pairs persistently across launches of your app.

It uses NSUserDefaults underneath but exposes a type-safe facade with lots of nice conveniences.

It’s used in production by apps like GifskiDatoLungoBattery Indicator, and HEIC Converter.

For a real-world example, see the Plash app.

Defaults Highlights

Defaults Benefits over @AppStorage

Compatibility

Defaults on GitHub: https://github.com/sindresorhus/Defaults
Platform: iOS
⭐️: 1.2K
Exit mobile version