Skip to content

Commit cb2be25

Browse files
committed
Zero concurrency warnings
1 parent 23f7abc commit cb2be25

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Sources/Grape/Modifiers/GraphForegroundScale.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,20 @@ import SwiftUI
22

33
extension EnvironmentValues {
44
@usableFromInline
5-
@Entry
6-
var graphForegroundScaleEnvironment: [AnyHashable: GraphicsContext.Shading] = [:]
5+
var graphForegroundScaleEnvironment: [AnyHashable: GraphicsContext.Shading]
6+
{
7+
get {
8+
self[__Key_graphForegroundScaleEnvironment.self]
9+
}
10+
set {
11+
self[__Key_graphForegroundScaleEnvironment.self] = newValue
12+
}
13+
}
14+
15+
private struct __Key_graphForegroundScaleEnvironment: SwiftUICore.EnvironmentKey {
16+
typealias Value = [AnyHashable: GraphicsContext.Shading]
17+
static var defaultValue: Value { [:] }
18+
}
719
}
820

921
@usableFromInline

0 commit comments

Comments
 (0)