     private func handle(partialImage response: ImageResponse) {
         display(response.container, false, .success)
     }
+
+    #if os(iOS) || os(tvOS)
 
     private func display(_ image: ImageContainer, _ fromMemCache: Bool, _ response: ImageLoadingOptions.ResponseType) {
         guard let imageView = imageView else {


    // MARK: - Handling Responses

    #if os(iOS) || os(tvOS)

    private func handle(result: Result<ImageResponse, ImagePipeline.Error>, fromMemCache: Bool) {
        switch result {
        case let .success(response):


    #elseif os(macOS)

    private func display(_ image: ImageContainer, _ fromMemCache: Bool, _ response: ImageLoadingOptions.ResponseType) {
        guard let imageView = imageView else {
            return
