Avatar
@swift-5.7.3 @swift-5.3.3 public protocol DependencyKey { associatedtype Value } public struct GenericDependencyKey<T>: DependencyKey { public typealias Value = T public init() {} } extension DependencyKey where Self == GenericDependencyKey<Value> { public static var `default`: GenericDependencyKey<Value> { .init() } } (edited)