matthewcheok / MCPanelViewController

Drop-in panel control for iOS with blurring background and screen-edge activation gestures.
MIT License
324 stars 25 forks source link

right/left menu movement delay with pan gesture #8

Open amitsaxena688 opened 10 years ago

amitsaxena688 commented 10 years ago

panning from the edge of screen brings the menu after some delay. menu right/left does not move with the pan gesture.it comes little later

amitsaxena688 commented 10 years ago

Any guidance for this would be a great help.can anyone guide how can i fix it ?

matthewcheok commented 10 years ago

The delay is mainly due to way the panel captures the background image to apply the image blur in advance. It does this exactly once, when the gesture is triggered or when opened programatically, and then crops the image using UIView content modes, to show only the relevant parts obscured by the panel.

If you are using iOS 7, it's possible to get faster performance using some of the more "hack"-ish techniques (like stealing the CALayer of a UIToolbar), however, you lose the ability to specify the strength of the blur (required to match the look of notification or control center.)