Skip to content

Commit

Permalink
Fix missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 28, 2024
1 parent 9dbcd79 commit 8633837
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Sources/Nuke/ImageResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

import Foundation

#if !os(macOS)
import UIKit.UIImage
#else
import AppKit.NSImage
#if canImport(UIKit)
import UIKit
#endif

#if canImport(AppKit)
import AppKit
#endif
/// An image response that contains a fetched image and some metadata.
public struct ImageResponse: @unchecked Sendable {
/// An image container with an image and associated metadata.
Expand Down
7 changes: 7 additions & 0 deletions Sources/Nuke/ImageTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
// Copyright (c) 2015-2024 Alexander Grebenyuk (github.com/kean).

import Foundation

#if canImport(UIKit)
import UIKit
#endif

#if canImport(AppKit)
import AppKit
#endif

/// A task performed by the ``ImagePipeline``.
///
Expand Down

0 comments on commit 8633837

Please sign in to comment.