Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev. Learn more →
Top 23 Swift Dependency Injection Projects
-
DI is a concept which makes a class independent of its dependency management. It achieves that by decoupling the usage of an object from its creation. This helps you to follow SOLID’s dependency inversion and single responsibility principles. To achieve this in Swift one of the most appreciated library is Swinject. This library not only provides DI but also have many other features like:-
-
-
Appwrite
Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.
-
-
-
Project mention: What is a piece of code (or Framework, extension, etc.) that you add in every new project? | /r/swift | 2023-02-24
I prefer Factory over Dependencies (since I wrote it). You can use the SwuftUI environment-style syntax for injection, and registering a new dependency type is much, much simpler than using an EnvironmentKey approach.
-
I’d sincerely recommend the video series and associated repositories on https://www.pointfree.co
-
-
InfluxDB
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
-
-
SecurePropertyStorage
Helps you define secure storages for your properties using Swift property wrappers.
-
-
-
-
Locatable
A micro-framework that leverages Swift Property Wrappers to implement the Service Locator pattern
-
-
pilgrim
Dependency injection for Swift (iOS, OSX, Linux). Strongly typed, pure Swift successor to Typhoon.
-
-
-
-
-
-
ViperServices
Simple dependency injection container for services written for iOS in swift supporting boot order
-
Project mention: Attempt at modern DI framework replacement for Swinject | /r/iOSProgramming | 2023-03-22
-
-
Onboard AI
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Swift Dependency Injection related posts
- Good Swift Repositories for Experienced Dev
- Do you (not) use Dependency Injection and why?
- TCA state update externally
- I wrote an article about The Magic of KeyPath for Dependency Injection and how it Saved Me from Dependency Injection Hell that I faced in my current project.
- Queryable - A SwiftUI package that lets you trigger and await view presentations asynchronously
- How to send data from the app delegate to other views?
- What is a piece of code (or Framework, extension, etc.) that you add in every new project?
-
A note from our sponsor - Onboard AI
getonboard.dev | 3 Dec 2023
Index
What are some of the best open-source Dependency Injection projects in Swift? This list will help you:
Project | Stars | |
---|---|---|
1 | Swinject | 6,018 |
2 | Resolver | 2,059 |
3 | Cleanse | 1,747 |
4 | Needle | 1,650 |
5 | Factory | 1,349 |
6 | swift-dependencies | 1,180 |
7 | iOSSampleApp | 750 |
8 | Weaver | 726 |
9 | SecurePropertyStorage | 469 |
10 | DITranquillity | 404 |
11 | Pure | 368 |
12 | Deli | 134 |
13 | Locatable | 116 |
14 | DIKit | 101 |
15 | pilgrim | 61 |
16 | Corridor | 61 |
17 | Guise | 55 |
18 | AnnotationInject | 40 |
19 | Impose | 11 |
20 | StoryboardBuilder | 6 |
21 | ViperServices | 5 |
22 | Syringe | 4 |
23 | TinyDi | 1 |