iDevelopper / PBRevealViewController

A UIViewController subclass for revealing a left and/or right view controller above or below a main view controller.
MIT License
80 stars 16 forks source link

didShowLeft delegate called when left view not open #66

Closed ccannell closed 5 years ago

ccannell commented 5 years ago

I'm able to get PBRevealViewController to call the

@objc func revealController(_ revealController: PBRevealViewController, didShowLeft viewController: UIViewController)

delegate when the left view is not open (e.g. revealController.isLeftViewOpen == false). I'm able to trigger this using the pan gesture to open the menu. If I make a pan gesture in just the right way the delegate will be called even when the left view doesn't open. I'm using the swift branch. Thank you.

iDevelopper commented 5 years ago

Hi,

I can't reproduce the behaviour.

Are you sure you are testing isLeftViewOpen in didShowLeft and not in WillShowLeft?

ccannell commented 5 years ago

Positive. I’ll post some more code.

ccannell commented 5 years ago

I'll see if I can get it down to a small example and post a full project.

iDevelopper commented 5 years ago

Closing this issue as no feedback given.