forked from tgrapperon/swift-composable-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
DependencyKey
maximkrouk edited this page May 5, 2022
·
1 revision
Conform types to this protocol to define dependencies as Dependencies computed
properties.
public protocol DependencyKey You use this protocol like EnvironmentKey are used in SwiftUI. Types conforming to this
protocol can then be used to declare the dependency in the Dependencies namespace.
associatedtype ValueThe default value returned when accessing the corresponding dependency when no value was defined by one of its parents.
static var defaultValue: Self.Value Generated at 2022-05-05T11:18:52+0000 using swift-doc 1.0.0-rc.1.