We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7252d2 commit 441be20Copy full SHA for 441be20
Examples/Sources/MacroExamples/Interface/AccessorMacros.swift
@@ -14,6 +14,7 @@ import SwiftUI
14
15
// MARK: - EnvironmentValue Accessor
16
17
+/// Adds getter / setter to an attached environment value with specified EnvironmentKey
18
@attached(accessor)
19
public macro EnvironmentValue(for key: any EnvironmentKey.Type) =
20
#externalMacro(module: "MacroExamplesImplementation", type: "EnvironmentValueMacro")
0 commit comments