title: Problems using CIFilter in iOS 14 widget
body: <p>I wrote a small CIFilter routine that works fine in a SwiftUI app:</p>
  <pre><code>func applyFilter(_ image: UIImage) -&gt; UIImage {
      if let filter = CIFilter(name:&quot;CIComicEffect&quot;) {
          filter.setValue(CIImage(image: image), forKey: kCIInputImageKey)
          
          if let outputImage = filter.outputImage  {
              let context = CIContext()
  
              if let cgimg = context.createCGImage(outputImage, from: outputImage.extent) {
                  return UIImage(cgImage: cgimg)
              }
          }
      }
      
      return image
  }
  </code></pre>
  <p>But when I use it in iOS 14 widget,</p>
  <pre><code>Image(uiImage: uiImage)  // works fine
  </code></pre>
  <p>but</p>
  <pre><code>Image(uiImage: applyFilter(uiImage))  // return nothing
  </code></pre>
  <p>Does not work.</p>
  <p>PS: upon further testing it seems that CIComicEffect does not work but CISepiaTone did. Any idea why?</p>