-
Notifications
You must be signed in to change notification settings - Fork 10
Compatible
This namespace is used to provide non-clashing variants to the DependencyKey
protocol and the
@Dependency
property wrapper.
public enum Compatible
You can use this typealias if DependencyKey
is clashing with other modules offering
a similarly named protocol.
public typealias DependencyKey = _Dependencies.DependencyKey
You should be able to replace:
struct MainQueueKey: DependencyKey { … }
by
struct MainQueueKey: Compatible.DependencyKey { … }
You can use this typealias if @Dependency
is clashing with other modules offering
a similarly named property wrapper.
public typealias Dependency = ComposableEnvironmentDependency
You should be able to replace
@Dependency(\.mainQueue) var mainQueue
by
@Compatible.Dependency(\.mainQueue) var mainQueue
You can use this typealias if @Dependency
is clashing with other modules offering
a similarly named property wrapper.
public typealias Dependency = ComposableEnvironmentDependency
You should be able to replace
@Dependency(\.mainQueue) var mainQueue
by
@Compatible.Dependency(\.mainQueue) var mainQueue
You can use this typealias if DependencyKey
is clashing with other modules offering
a similarly named protocol.
public typealias DependencyKey = _Dependencies.DependencyKey
You should be able to replace:
struct MainQueueKey: DependencyKey { … }
by
struct MainQueueKey: Compatible.DependencyKey { … }
Generated at 2022-08-22T21:22:01+0000 using swift-doc 1.0.0-rc.1.