ECSlidingViewController / ECSlidingViewController

Customizable sliding view controller container.
MIT License
4.32k stars 817 forks source link

Not presenting the original view controller #419

Open CaledoniaProject opened 9 years ago

CaledoniaProject commented 9 years ago

Hi,

When I tap on areas outside the left menu, it doesn't close the menu and show the original view controller.

I can be done only though the "Home" button on the nav bar. Is it designed to be so?

anuraagdjain commented 8 years ago

You can add Pan Gesture which will help you to close the slider menu. override func viewDidAppear(animated: Bool) { self.view.addGestureRecognizer(self.slidingViewController().panGesture) }

This should do the work. Just slide from right to left to close the menu.