 
 import Foundation
 import Nuke
+
+#if os(iOS)
+
+import UIKit
 
 private let pipeline = ImagePipeline.shared
 private let url = URL(string: "https://example.com/image.jpeg")!

        prefetcher.startPrefetching(with: urls)
    }
}
#endif

// MARK: - ImagePipeline (Extension)



// MARK: - Prefetching

private final class PrefetchingDemoViewController: UICollectionViewController {
    private let prefetcher = ImagePrefetcher()
    private var photos: [URL] = []
