swift-dependencies
swift-dependencies copied to clipboard
A dependency management library inspired by SwiftUI's "environment."
The `liveValue`/`previewValue`/`testValue` fallback mechanism is currently bypassed for dependencies which have an `associatedtype Value` of `Optional` type. The logic confuses no value found in `storage` for a valid value (`nil:...
This is just a minor cleanup of of DependencyValues.swift to use early return and factor out the warning in order to make it easier to understand the logic of how...
### Description When using `@DependencyClient` macro in a client that has closures with mandatory returns, when using these closures in a test without overriding them we don't get errors about...
Using `SFSafariViewController` in the context of SwiftUI does not work well around navigation. Therefore, using it in the context of UIKIt works better. In other platform, `EnvironmentValues().openURL` is used same...
This API enables the creation of schedulers that propagate dependencies across `schedule` calls. For motivation and further discussion, see #85.
I tried to make a unit test for the deadlock behavior that was discussed in the point free slack. I recently had a deadlock issue in a side project with...
The Android module is available in Swift 6 for Android
I'm attempting to fix behavior that broke after #355. cc @mbrandonw I've added initAccessor boolean property, added snapshot tests for possible scenarios. --- Still in draft because it would have...
I ran into an issue where one our mock dependencies is holding onto a type which accesses a different dependency during deinit. When the cache is reset the mock dependency...
This is a first pass at a feature I'd like to suggest we add to the library. I'm happy to update any documentation/additional tests if needed as well. In general...