Posts

Post not yet marked as solved
5 Replies
8.8k Views
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!
Posted
by Eric.app.
Last updated
.
Post not yet marked as solved
0 Replies
456 Views
Is there a simpler way to determine if a device's telephoto camera has a 2.0x, 2.5x or the new 3.0x lens, rather than having to check that the device is a iPhone 12 Pro Max or a 13 Pro? Many thanks!
Posted
by Eric.app.
Last updated
.