import DependenciesMacros
Coverage
Declarations
Interfaces
struct Unimplemented
The error thrown by “unimplemented” closures produced by DependencyEndpoint(method:)
DependencyEndpoint(method:)
@attached(member, names: named(init)) @attached(memberAttribute) macro DependencyClient()
Improves the ergonomics of dependency clients modeled on structs and closures, as detailed in our “Designing Dependencies” article.
@attached(accessor, names: named(init), named(get), named(set)) @attached(peer, names: arbitrary) macro DependencyEndpoint(method: String = "")
Provides a default, “unimplemented” value to a closure property.
@attached(accessor, names: named(willSet)) macro DependencyEndpointIgnored()
import Dependencies
A dependency management library inspired by SwiftUI’s “environment.”
import DependenciesMacrosPlugin
import DependenciesTestSupport