# swift-dependencies

> A Swift dependency management library inspired by SwiftUI's environment

Source: https://talira.ai/catalog/swift-dependencies-a2233j7b
Every listing: https://talira.ai/catalog.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)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Point-Free](https://talira.ai/orgs/point-free.md)

swift-dependencies is Point-Free's dependency management (dependency injection) library for Swift, inspired by SwiftUI's environment. It controls the parts of an app that talk to the outside world (API clients, UUID and Date initializers, file access, user defaults, clocks and timers) so they can be swapped for test, preview and live implementations, making tests fast and deterministic and previews reliable. It was designed over a series of Point-Free episodes and comes with companion packages such as combine-schedulers and xctest-dynamic-overlay.

## Links

- GitHub: https://github.com/pointfreeco/swift-dependencies

## Problems it solves

- inject dependencies in a SwiftUI app
- make Swift tests deterministic by controlling dates and network calls
- swap API clients for previews in Swift

## Features

- SwiftUI environment-style dependency management
- swap live, test and preview implementations
- controls dates, UUIDs, clocks, files and API clients
- deterministic tests

## Trust

Overall: 0.46 out of 1.
Signals: maintenance 0.46, adoption 0.67, momentum 0.50, community 0.69, backing 0.30, extensibility 0.00.

- last commit 30 days ago
- 1 commits in the last 90 days
- latest release 1.17.2 30 days ago
- 2.2k GitHub stars
- 53 contributors
- backed by Point-Free

## Alternatives

- [Factory (Swift)](https://talira.ai/catalog/factory-swift-t5c5ynn7.md): Container-based dependency injection for Swift and SwiftUI

## Sources

[^1]: https://github.com/pointfreeco/swift-dependencies/blob/main/LICENSE (checked 29 Nov 2026)
