Skip to content

Commit

Permalink
[Swift 6] Remove nonisolated(unsafe)
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Haynes committed Jun 17, 2024
1 parent a3f9549 commit f1e05b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Sources/Grape/Modifiers/GraphForegroundScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ import SwiftUI
@usableFromInline
enum GrapeEnvironment { }

@available(*, unavailable)
extension AnyHashable: @unchecked Sendable { }

extension GrapeEnvironment {
@usableFromInline
struct GraphForegroundScale: EnvironmentKey {
#if swift(>=5.9)
struct GraphForegroundScale: EnvironmentKey, Sendable {
@usableFromInline
static nonisolated(unsafe) let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
#else
static let defaultValue: [AnyHashable: GraphicsContext.Shading] = [:]
#endif
}
}

Expand Down

0 comments on commit f1e05b9

Please sign in to comment.