How to blur an existing image in a UIImageView with Swift?

前端 未结 11 1885
自闭症患者
自闭症患者 2020-12-28 16:48

The setup is simple.

  • A ViewController with UIImageView that has an image assigned.
  • A UIButton that when clicked blurs the image in the UIImageView.<
11条回答
  •  囚心锁ツ
    2020-12-28 17:40

    Check if something is coming nil. I had a similar issue, but in my case I wasn't creating a new instance of CIImage, because of that image.ciimage was coming nil.

提交回复
热议问题