Search code examples
iosinstagramgpuimageuipinchgesturerecognizer

Circular White Pinch Gesture Overlay commonly used for Blurring Images in iOS


I have implemented the ability to blur images in my iOS app using the pinch gesture, however I would like to implement a circular white overlay that is commonly used as a reference point with the pinch gesture so that the user can adjust the amount of blur. Just like the image below:

Sample White Pinch Gesture Overlay

The image above was from: https://media.tumblr.com/tumblr_lutwauVUW31qm4rc3.png

How can I implement this feature?

Thanks!


Solution

  • GaussianSelectiveBlurFilter in GPUImage lib may be help yo a lot. well,here is the github source.

    I think it is not hard to use, hope you will enjoy it.