10

I have following that works fine on iOS 11:

let ciContext       = CIContext(options: [kCIContextWorkingFormat : kCIFormatRGBAh])  
var outputImage     : CIImage  
let mainImage       = CIImage(data: jpegData)  
let disparityImage  = CIImage(data: jpegData, options: [kCIImageAuxiliaryDisparity : true])  
let filter          = CIFilter(name: "CIDepthBlurEffect",  
                      withInputParameters: [kCIInputImageKey : mainImage!,  
                      kCIInputDisparityImageKey: disparityImage!])  
outputImage         = filter!.outputImage!

Issue

Rendtition was fine until iOS 12, where everything is blurred out. This was with every beta so far. The whole image is in blur.

I couldn't find any API change notes on this, also CIDepthBlurEffect is not documented to begin with.

Gizmodo
  • 3,151
  • 7
  • 45
  • 92

0 Answers0