Search code examples
iosiphonexcodeswiftcalayer

Is CAFilter still a private API?


So I'm writing a Swift app recently and I'm creating a blur effect above imageView, I heard that CAFilter is really high efficient doing this blur job but it's a private API, according to what people had said like 3 or more years ago. I'm wondering that whether CAFilter still banned in App Store. Someone please help me.


Solution

  • I think that CAFilter is being replaced by CIFilter that is a class of the CoreImage Framework.

    Core Image Programming Guide

    You can also use UIVisualEffectView to do a blur overlay, but you have less options of customization.