# Resolver

> Deprecated Swift dependency injection and service locator framework, replaced by Factory

Source: https://talira.ai/catalog/resolver-mtaeyfsd
Every listing: https://talira.ai/catalog.md

Status: Resolver's makers archived or ended it. Its author deprecated Resolver and replaced it with Factory, his newer dependency injection system. Source: https://github.com/hmlongco/Resolver/blob/master/README.md

- Kind: Open source
- Types: Library
- Categories: [libraries / dependency injection](https://talira.ai/categories/libraries/dependency-injection), [languages / swift](https://talira.ai/categories/languages/swift)
- Platforms: ios[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^2]
- Backed by: [Michael Long](https://talira.ai/orgs/hmlongco.md)

Resolver is a lightweight dependency injection and service locator framework for Swift on iOS, implemented in one file of about 700 lines. It supports interface, property, constructor and method injection, service location and property-wrapper annotations (@Injected, @LazyInjected, @InjectedObject for SwiftUI), with automatic type inference, scopes, named instances, argument passing and nested containers. Its author, Michael Long, has deprecated it and replaced it with [Factory](https://talira.ai/catalog/factory-swift-t5c5ynn7.md), a compile-time safe container-based system.

## Links

- GitHub: https://github.com/hmlongco/Resolver

## Problems it solves

- inject services into my iOS view controllers without passing them through every initializer
- swap real services for mocks in Swift tests
- share one instance of a service across my iOS app

## Features

- constructor, property, method and interface injection
- service locator
- @Injected property wrappers, including @InjectedObject for SwiftUI
- scopes: application, cached, graph, shared and unique
- named instances and argument passing
- custom and nested containers

## Limitations

- Deprecated by its author in favour of Factory.[^1]

## Trust

Overall: 0.08 out of 1.
Signals: maintenance 0.00, adoption 0.67, momentum 0.40, community 0.57, backing 0.30, extensibility 0.00.

- latest release 1.5.1 2.6 years ago
- 2.2k GitHub stars
- 25 contributors
- accepts sponsorship (Github)
- backed by Michael Long

Warnings:

- archived by its makers
- last commit 5 months ago

## Alternatives

- [Factory (Swift)](https://talira.ai/catalog/factory-swift-t5c5ynn7.md): Container-based dependency injection for Swift and SwiftUI
- [swift-dependencies](https://talira.ai/catalog/swift-dependencies-a2233j7b.md): A Swift dependency management library inspired by SwiftUI's environment

## Sources

[^1]: https://github.com/hmlongco/Resolver/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/hmlongco/Resolver/blob/master/LICENSE (checked 29 Nov 2026)
