I have the following code:
let ciImage = filterAndRender(ciImage: inputImage, doCrop: true)
let outCGImage = ciContext.createCGImage(ciImage, from: ciImage.extent)!
let dest = CGImageDestinationCreateWithURL(output.renderedContentURL as CFURL, kUTTypeJPEG, 1, nil)!
CGImageDestinationAddImage(dest, outCGImage, [kCGImageDestinationLossyCompressionQuality as String:1] as CFDictionary)
CGImageDestinationFinalize(dest)
I get the following caution: " 'kUTTypeJPEG' was deprecated in iOS 15.0: Use UTTypeJPEG instead."
However, when I substitute 'UTTypeJPEG' as directed, I get this error: "Cannot find 'UTTypeJPEG' in scope"
What should I use for kUTTypeJPEG instead?
Thanks!