-
Notifications
You must be signed in to change notification settings - Fork 10
DependencyKey
tgrapperon edited this page Dec 26, 2021
·
4 revisions
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-08-22T21:22:01+0000 using swift-doc 1.0.0-rc.1.