Defaults
UserDefaults
Our great sponsors
Defaults | UserDefaults | |
---|---|---|
5 | - | |
1,850 | 1,432 | |
- | - | |
6.3 | 0.0 | |
15 days ago | about 1 year ago | |
Swift | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Defaults
-
How can I use NSUserDefaults?
I strongly recommend you to use 💾 Defaults package. It has made my life a breeze. It’s literally a global state for user defaults with simple syntax and out of the box “reactiveness”, so if you change this here, it’ll change there as well :)
-
Swift data notation?
I can't recommend https://github.com/sindresorhus/Defaults enough. Type-safe and swifty access to UserDefaults.
-
Help me with user defaults
but this isn't type-safe. Check out https://github.com/sindresorhus/Defaults instead.
- What are the most underrated third party libraries for Native iOS?
- Defaults v5 — Swifty and modern UserDefaults
UserDefaults
We haven't tracked posts mentioning UserDefaults yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
SwiftyUserDefaults - Modern Swift API for NSUserDefaults
Realm - Realm is a mobile database: a replacement for Core Data & SQLite
UserDefaultsStore - Why not use UserDefaults to store Codable objects 😉
Palau - NSUserDefaults with Wings!
SQLite.swift - A type-safe, Swift-language layer over SQLite3.
FCModel - An alternative to Core Data for people who like having direct SQL access.
Zephyr - Effortlessly synchronize UserDefaults over iCloud.
Storez - 💾 Safe, statically-typed, store-agnostic key-value storage written in Swift!
Prephirences - Prephirences is a Swift library that provides useful protocols and convenience methods to manage application preferences, configurations and app-state. UserDefaults
MMKV - An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.