Packages for keyword “dependency-injection”
These packages are available as a package collection, usable in Xcode or SwiftPM.
foundation-dependencies
Lightweight, testable wrappers for Foundation types like UserDefaults, Bundle, and file system access — built for use with swift-dependencies.
GlobalConfModule
Dependency injection or general configuration framework for Swift (any platforms including Linux and Windows)
Inject
Effortless modular dependency injection for Swift.
sword
🗡️ A compile time dependency injection library for Swift
WeaveDI
WeaveDI(DiContainer)
files
A lightweight Swift library for managing file system resources in a protocol-oriented way. Provides abstractions for files and directories, supporting safe and efficient file operations.
SwiftDI
SwiftDI the new way to use your dependency in Swift 5.1
AnnotationInject
Compile-time Swift dependency injection annotations
Cleanse
Lightweight Swift Dependency Injection Framework
Forge
Dependency injection for Swift that gets out of your way.
SwiftUI Dependencies
💉 SwiftUI-Environment based dependency injection
SwinjectLight
Lightweight dependency injection framework for Swift (inspired by Swinject)
Ariadne
Elegant and extensible routing framework in Swift
DependencyInjector
Dependency injector made in pure Swift
DependencyInjectorObjectMapper
Dependency injector Swift support ObjectMapper
InjectableLoggers
A nice set of protocols that will help logger(s) at being loosely coupled, injectable and testable.
Stitch
A lightweight, SwiftUI inspired dependency injection (DI) library that is compile time safe without the need for codegen tooling.
XServiceLocator
Light-weight Service Locator / Dependency Injection library for Swift: providing objects with the dependencies they need throughout your whole iOS app.
IDGenerator
A flexible, keyed registry of ID generators for Swift, inspired by swift-dependencies by Point-Free.
service-kit
📦 Dependency injection / inversion of control framework.