AKSideMenu disable left pan

0 votes
asked Sep 11, 2017 by pradumna-patil

I am new in Swift and working on side menu I am using AKSideMenu So If any one had used that library please let me know how to disable side menu for only one UIViewController Thank you.

1 Answer

0 votes
answered Sep 11, 2017 by salman-ghumsani

Write in viewWillAppear

self.sideMenuViewController?.panGestureEnabled = false For disable side menu.

Write in viewWillDisappear

self.sideMenuViewController?.panGestureEnabled = true For enable side menu.

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter