We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a283c96 commit 74a3d68Copy full SHA for 74a3d68
Examples/Tests/MacroExamples/Implementation/Accessor/EnvironmentValueMacroTests.swift
@@ -21,20 +21,12 @@ final class EnvironmentValueMacroMacroTests: XCTestCase {
21
func testEnvironmentValue() {
22
assertMacroExpansion(
23
"""
24
- private struct MyEnvironmentKey: EnvironmentKey {
25
- static let defaultValue: String = "Default value"
26
- }
27
-
28
extension EnvironmentValues {
29
@EnvironmentValue(for: MyEnvironmentKey.self)
30
var myCustomValue: String
31
}
32
""",
33
expandedSource: """
34
35
36
37
38
39
var myCustomValue: String {
40
get {
0 commit comments