This is documentation for Swinject v2.x series. Documentation for v1.x is here.
Swinject is a lightweight dependency injection framework for Swift apps. It allows you to split your app into loosely-coupled components, which can then be maintained and tested more easily. Swinject supports pure Swift types, and is powered by the Swift generic type system and first class functions. This makes it syntactically elegant and simple to define the object dependencies for your app.
- SwinjectPropertyLoader: Loading property values from resources
- SwinjectStoryboard: Automatic dependency injection via Storyboard
- Swinject-CodeGen: Type-safe code generation of
Container
from a CSV/YAML file defining dependencies - SwinjectAutoregistration: Automatic registration of services by leveraging the Swift Generics.