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.
2 parents 5c24e87 + cb2be25 commit 8bc6db1Copy full SHA for 8bc6db1
Sources/Grape/Modifiers/GraphForegroundScale.swift
@@ -2,8 +2,20 @@ import SwiftUI
2
3
extension EnvironmentValues {
4
@usableFromInline
5
- @Entry
6
- var graphForegroundScaleEnvironment: [AnyHashable: GraphicsContext.Shading] = [:]
+ var graphForegroundScaleEnvironment: [AnyHashable: GraphicsContext.Shading]
+ {
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
19
}
20
21
0 commit comments