Skip to content

Commit

Permalink
Remove nonisolated(unsafe) for Swift 5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Haynes committed Jun 17, 2024
1 parent ba27f5a commit a3f9549
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Grape/Modifiers/GraphForegroundScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ enum GrapeEnvironment { }
extension GrapeEnvironment {
@usableFromInline
struct GraphForegroundScale: EnvironmentKey {
#if swift(>=5.9)
@usableFromInline
static nonisolated(unsafe) let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
#else
static let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
#endif
}
}

Expand Down

0 comments on commit a3f9549

Please sign in to comment.