Skip to content

Commit f1e05b9

Browse files
author
Walker Haynes
committed
[Swift 6] Remove nonisolated(unsafe)
1 parent a3f9549 commit f1e05b9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/Grape/Modifiers/GraphForegroundScale.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ import SwiftUI
33
@usableFromInline
44
enum GrapeEnvironment { }
55

6+
@available(*, unavailable)
7+
extension AnyHashable: @unchecked Sendable { }
68

79
extension GrapeEnvironment {
810
@usableFromInline
9-
struct GraphForegroundScale: EnvironmentKey {
10-
#if swift(>=5.9)
11+
struct GraphForegroundScale: EnvironmentKey, Sendable {
1112
@usableFromInline
12-
static nonisolated(unsafe) let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
13-
#else
1413
static let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
15-
#endif
1614
}
1715
}
1816

0 commit comments

Comments
 (0)