Defaults
GRDB.swift
Our great sponsors
Defaults | GRDB.swift | |
---|---|---|
5 | 37 | |
1,854 | 6,476 | |
- | - | |
6.3 | 9.3 | |
2 days ago | 1 day 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
GRDB.swift
-
Bundling database with iOS app
I'm using GRDB , you can use existing pre-populated sqlite DB file. https://github.com/groue/GRDB.swift/wiki/Performance .
-
How can I quickly parse a huge 45MB JSON file using JsonDecoder
Not quite exactly sure what you mean but if its a .sqlite3 file then you can use it with this easy to use library https://github.com/groue/GRDB.swift
-
Question about Apple's review
The 3rd party library I use GRDB SwiftyUserDefaults Kingfisher SwiftDate Popovers
-
When considering how to store data for something like a cooking recipe application, what are the disadvantages of using CoreData, when compared with other database options?
The other thing is that it could be an overkill for your app if you just need to basically "store an array of 100 objects". Then you could probably consider other solutions like SQLite (with wrappers like GRDB) or plain JSON files.
-
The most amazing project documentation you saw
https://github.com/groue/GRDB.swift#readme https://github.com/groue/GRDB.swift/tree/master/Documentation https://swiftpackageindex.com/groue/grdb.swift/documentation/grdb/
-
Struggles with Logic & CoreData
https://github.com/groue/GRDB.swift/blob/master/Documentation/AssociationsBasics.md might be interesting to look at for how it handles relationships between entities.
-
Database/permanent data storing solution for iOS
I recently used GRDB.
- GRDB-ORM, an ORM for GRDB - Swift SQLite
-
How to decide between JSON and CoreData?
Check the performance comparison page. GRDB comes with a convenient and ready-made support for Swift Codable that performs quite well. When needed, it is possible to write less convenient but optimized record types that add very little overhead to SQLite, and perform really well.
-
Is this an acceptable authentication/account management setup?
Hey all. So I just got done developing an app that does visitation tracking. Basically the user creates an account with email, name, password etc.. the info is then saved to a SQLite database (using GRDB) with a table named "User" and then injected into the next view controller and so on... I plan on allowing the user to store their account in icloud in the future.
What are some alternatives?
SwiftyUserDefaults - Modern Swift API for NSUserDefaults
SQLite.swift - A type-safe, Swift-language layer over SQLite3.
UserDefaults - Simple, Strongly Typed UserDefaults for iOS, macOS and tvOS
Realm - Realm is a mobile database: a replacement for Core Data & SQLite
UserDefaultsStore - Why not use UserDefaults to store Codable objects 😉
FMDB - A Cocoa / Objective-C wrapper around SQLite
Palau - NSUserDefaults with Wings!
SwiftData
FCModel - An alternative to Core Data for people who like having direct SQL access.
swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
Storez - 💾 Safe, statically-typed, store-agnostic key-value storage written in Swift!
IceCream - Sync Realm Database with CloudKit