Skip to content

Commit

Permalink
Fix SwiftPM build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Nov 17, 2024
1 parent 4878846 commit 2896769
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Nuke/Encoding/ImageEncoding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ extension ImageEncoding {
}
}

// note: @unchecked was added to surpress build errors with NSImage on macOS

/// Image encoding context used when selecting which encoder to use.
public struct ImageEncodingContext: Sendable {
public struct ImageEncodingContext: @unchecked Sendable {
public let request: ImageRequest
public let image: PlatformImage
public let urlResponse: URLResponse?
Expand Down

0 comments on commit 2896769

Please sign in to comment.