Packages for keyword “dependency-injection”
These packages are available as a package collection, usable in Xcode or SwiftPM.
cache
A lightweight Swift library for caching Identifiable values with optional expiry, supporting both in-memory and file-backed storage. Designed for testability, composability, and use with swift-dependencies.
SwiftDI
SwiftDI the new way to use your dependency in Swift 5.1
AnnotationInject
Compile-time Swift dependency injection annotations
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.
Ariadne
Elegant and extensible routing framework in Swift
Cleanse
Lightweight Swift Dependency Injection Framework
DependencyInjector
Dependency injector made in pure Swift
DependencyInjectorObjectMapper
Dependency injector Swift support ObjectMapper
error-presentation
A lightweight Swift package for presenting clean, localised, user-friendly error messages in SwiftUI and UIKit.
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.
SwinjectLight
Lightweight dependency injection framework for Swift (inspired by Swinject)
XServiceLocator
Light-weight Service Locator / Dependency Injection library for Swift: providing objects with the dependencies they need throughout your whole iOS app.
Injection
Dependency Injection pacakge
service-kit
📦 Dependency injection / inversion of control framework.
DIAttribute
Introduce dependency injection attribute (@Inject)
Inject
A lightweight dependency injection library for Swift and SwiftUI projects.
Juice
Lightweight dependency injection container with simple fluent interface.
Stitcher
A dependency management and injection library for Swift projects
swift-libs
A collection of reusable patterns, protocols, classes, structs, and extensions we have been using in our Swift code from some time now, grouped into libraries based on purpose.