You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new API for overriding dependencies is clear as it corresponds to SwiftUI's Environment, but the instance used for overriding must be created elsewhere.
MyFeature()
// mockAPIClient must be created elsewhere.
.dependency(mockAPIClient)
Are there any disadvantages to implementing the above transformDependency?
I'm willing to implementing the above transform Dependency and creating a PR.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The new API for overriding dependencies is clear as it corresponds to SwiftUI's Environment, but the instance used for overriding must be created elsewhere.
Currently, it seems that there is no API equivalent to transformDependency(_:transform:) as shown below.
Are there any disadvantages to implementing the above transformDependency?
I'm willing to implementing the above transform Dependency and creating a PR.
Beta Was this translation helpful? Give feedback.
All reactions