0

How can I remove a circular section from a UIBlurEffect.

I have a full page blur and a image with circle buttons.

I want to be able to cut out the section of the blur that covers a particular circle button.

6
  • Please explain your question clearly.
    – User511
    Nov 7, 2016 at 7:44
  • He wants a "hole" in the blurred effect "cover". A small region that is not blurred. Nov 7, 2016 at 8:13
  • The workaround I'm going to suggest is too lame for an answer, so I'm posting it as a comment. Nov 7, 2016 at 8:13
  • Perhaps you can overlay a UIView with a copy of the child views that are blurred (i.e., your button), with corner layer radius equal to half its side (so it appears as a circle), and the clipsToBounds property set to true. Nov 7, 2016 at 8:14
  • So, instead of "cutting a hole" in the blur view, you are overlaying a circularly bound view with an unblurred copy of the contents beneath. A fake, but the visual result is the same. Nov 7, 2016 at 8:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.