Skip to content

Commit a3f9549

Browse files
author
Walker Haynes
committed
Remove nonisolated(unsafe) for Swift 5.9
1 parent ba27f5a commit a3f9549

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Grape/Modifiers/GraphForegroundScale.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ enum GrapeEnvironment { }
77
extension GrapeEnvironment {
88
@usableFromInline
99
struct GraphForegroundScale: EnvironmentKey {
10+
#if swift(>=5.9)
1011
@usableFromInline
1112
static nonisolated(unsafe) let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
13+
#else
14+
static let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
15+
#endif
1216
}
1317
}
1418

0 commit comments

Comments
 (0)