Resolver
Swift Ultralight Dependency Injection / Service Locator framework (by hmlongco)
DITranquillity
Dependency injection for iOS (Swift) (by ivlevAstef)
Our great sponsors
Resolver | DITranquillity | |
---|---|---|
11 | - | |
2,094 | 414 | |
- | - | |
2.8 | 4.2 | |
8 days ago | 8 months ago | |
Swift | Swift | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
Resolver
Posts with mentions or reviews of Resolver.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-17.
-
On using Dependency Injection with MVVM
If you're looking in to using a framework instead of doing it manually, I prefer Resolver over Swinject but both will work.
-
Popularity of unit tests with employers
But, today, I use Resolver. And recommend others also use this. There are other approaches, but Resolver is quite good. It solves this problem. "Just pass stuff in to the constructor" isn't true dependency injection anyway (but it kinda works, it's just a huge mess).
-
UIKIT Global class / environment object equivalent
You can achieve the concept as the environment in SwiftUI using protocols and Resolver https://github.com/hmlongco/Resolver
-
Dependency injection tutorial
This isn't a full tutorial, but it's a great Swift dependency injection library with lots of information in its documentation: https://github.com/hmlongco/Resolver
-
Fusion: A lightweight, @propertyWrapper based dependency injection library for Swift
I also suggest Resolver
-
MVVM + Dependency Injection
Sounds ok, and for DI I can recommend this lib, works well and easy to use https://github.com/hmlongco/Resolver/
-
SwiftUI Dependency injection
We’re using Resolver for dependency injection. Check it out: https://github.com/hmlongco/Resolver
- Add SPM dependency without exposing to clients?
- Any DI libraries for swift?
-
How to update a boolean in one view model from another view model?
Since multiple ViewModels need to access this data, I would avoid storing the data in a particular ViewModel—which should correlate only with a single, specific View—and instead implement this behavior in a third object (such as an AuthenticationService class). This way, both/any of your subsequent Views and ViewModels alike can all access that object as a single source of truth (by passing it around explicitly, putting it in the environment, or my favorite method: Resolver). Just remember to think about who should “own” data!
DITranquillity
Posts with mentions or reviews of DITranquillity.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning DITranquillity yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
When comparing Resolver and DITranquillity you can also consider the following projects:
Swinject - Dependency injection framework for Swift with iOS/macOS/Linux
Weaver - Dependency Injection framework for Swift (iOS/macOS/Linux)
Needle - Compile-time safe Swift dependency injection framework
Cleanse - Lightweight Swift Dependency Injection Framework
DIKit - Dependency Injection Framework for Swift, inspired by KOIN.
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.