rnystrom / RNGridMenu

A grid menu with elastic layout, depth of field, and realistic animation.
MIT License
1.28k stars 192 forks source link

UIBezierPath to exclude from blurring, UIBezierPath to create mask for menu background #12

Closed myell0w closed 11 years ago

myell0w commented 11 years ago

Hey, some more additions from my side.

The algorithm for excluding an area from blurring currently is pretty slow, it takes creating 2 images and overlaying them. Since it's optional and off by default I'm still opening the pull request, do you have any idea on how to improve the performance?

rnystrom commented 11 years ago

So I played a little w/ this and am a little confused. Would you mind updating the example with a method that masks the profile image? I tried creating a UIBezierPath with an oval using the image's frame, but nothing seemed to happen. I'm a little unclear what context the path is supposed to use.

myell0w commented 11 years ago

Sure, I just added a commit to demonstrate it. You'll notice that when you long-press to show the menu the image isn't blurred.

myell0w commented 11 years ago

Hey, any news on this?

rnystrom commented 11 years ago

Awesome, thanks for this! :)

oneguyindc commented 10 years ago

Hello - How can I add your control to a UIView and not a UIViewController