rnystrom / RNFrostedSidebar

A Control Center-esque control with blurred background and toggle animations.
MIT License
2.12k stars 340 forks source link

Adding more support delegates to control the show and dismiss of the menu #4

Closed ghvillasboas closed 11 years ago

ghvillasboas commented 11 years ago

There are situations where you sometimes need to modify itens on your UI on a way that is synchronized with the menu appearance and dismiss. Adding some more accurate delegates methods that fire on will/did show and on will/did dismiss.

Also a little bug correction for the not animated appearance of the menu (animation flag being ignored).

rnystrom commented 11 years ago

Awesome, looks good. Thanks for catching the animated bug too. I'm going to rearrange the if...else block to keep things DRY.

ghvillasboas commented 11 years ago

@rnystrom Thanks sir. I'll do a slightly little change on the line that the willShowOnScreenAnimated:animated is called. I'd just move it before the blurImage screenshot, so the delegate get a chance to change some things before the blur shot is taken.