@@ -26,6 +26,11 @@
import Foundation
import CoreGraphics
+#if os(macOS)
+import AppKit
+#else
+import UIKit
+#endif
/// An `CacheSerializer` is used to convert some data to an image object after
/// retrieving it from disk storage, and vice versa, to convert an image to data object
/// `FormatIndicatedCacheSerializer` lets you indicate an image format for serialized caches.
///
public protocol KFOptionSetter {
var options: KingfisherParsedOptionsInfo { get nonmutating set }
@@ -25,6 +25,11 @@
// THE SOFTWARE.
extension Never {}
/// The downloading progress block type.
/// The parameter value is the `receivedSize` of current response.
@@ -26,6 +26,12 @@
#if !os(watchOS)
+
import CoreImage
// Reuse the same CI Context for all CI drawing.
private let sharedProcessingQueue: CallbackQueue =
.dispatch(DispatchQueue(label: "com.onevcat.Kingfisher.ImageDownloader.Process"))
/// Protocol of `ImageDownloader`. This protocol provides a set of methods which are related to image downloader
/// working stages and rules.