Skip to content

Commit

Permalink
Merge pull request #58 from SwiftGraphs/zl/fix-concurrency
Browse files Browse the repository at this point in the history
Zero concurrency warnings
  • Loading branch information
li3zhen1 authored Aug 25, 2024
2 parents 5c24e87 + cb2be25 commit 8bc6db1
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Sources/Grape/Modifiers/GraphForegroundScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,20 @@ import SwiftUI

extension EnvironmentValues {
@usableFromInline
@Entry
var graphForegroundScaleEnvironment: [AnyHashable: GraphicsContext.Shading] = [:]
var graphForegroundScaleEnvironment: [AnyHashable: GraphicsContext.Shading]
{
get {
self[__Key_graphForegroundScaleEnvironment.self]
}
set {
self[__Key_graphForegroundScaleEnvironment.self] = newValue
}
}

private struct __Key_graphForegroundScaleEnvironment: SwiftUICore.EnvironmentKey {
typealias Value = [AnyHashable: GraphicsContext.Shading]
static var defaultValue: Value { [:] }
}
}

@usableFromInline
Expand Down

0 comments on commit 8bc6db1

Please sign in to comment.