Swinject/Swinject
Dependency injection framework for Swift with iOS/macOS/Linux observed · 2026-08-28
Health v2 · maintenance only
42/100
- Activity 39
- Release rhythm 13
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4047
- days_rel: 366
- days_push: 366
- n_releases_24m: 1
Adoption not part of the score
6707 stars · 539 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Swinject is a lightweight dependency injection framework for Swift, implementing inversion of control via a DI container. It helps split apps into loosely-coupled components that are easier to develop, test, and maintain.
Use cases
- resolve dependencies in a Swift iOS app with a DI container
- inject dependencies into view controllers via initializer or property injection
- manage singleton and transient object scopes in Swift
- break circular dependencies between Swift services
- make Swift code more testable with mock dependency injection
- organize app modules with assembler and container hierarchy
When to choose
- you're building an iOS/macOS/tvOS/watchOS or server-side Swift app and want loosely-coupled, testable components
- you need a mature, actively maintained Swift DI framework with object scopes and circular dependency support
When to avoid
- your project is small enough that manual initializer injection is sufficient
- you're not using Swift or the Apple/Linux Swift ecosystem
Facets
library · maturity stable
middleware developer-tools mobile-development developer-tools cross-platform dependency-injection di-container ioc-container swift ios macos linux
1 source
- readme: https://github.com/Swinject/Swinject · fetched 2026-08-28 · f645d4461989
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Swinject/Swinject | main | 42 |
For agents
markdown · JSON · MCP: product_card(name="Swinject/Swinject")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem