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.
nonisolated(unsafe)
1 parent a3f9549 commit f1e05b9Copy full SHA for f1e05b9
Sources/Grape/Modifiers/GraphForegroundScale.swift
@@ -3,16 +3,14 @@ import SwiftUI
3
@usableFromInline
4
enum GrapeEnvironment { }
5
6
+@available(*, unavailable)
7
+extension AnyHashable: @unchecked Sendable { }
8
9
extension GrapeEnvironment {
10
- struct GraphForegroundScale: EnvironmentKey {
- #if swift(>=5.9)
11
+ struct GraphForegroundScale: EnvironmentKey, Sendable {
12
- static nonisolated(unsafe) let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
13
- #else
14
static let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
15
- #endif
16
}
17
18
0 commit comments