Reputation: 763
I am using SWRevealViewController with TabBarController in swift.
This is the link of my sample project. When I am clicking on menu button it is not showing me the side menu. Anyone Can suggest me what am I missing in my project??
Here is the image of storyboard.
Here is the code which I have written in viewController and viewController1(tab1 and tab2).
if self.revealViewController() != nil {
menuButton.target = self.revealViewController()
menuButton.action = "revealToggle:"
self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
Please Help me. I am really not getting this thing. I have also added link of sample project.
Thank You..
Upvotes: 0
Views: 455
Reputation: 394
May try this
self.revealViewController().setFrontViewPosition(.Left, animated: true)
menuButton.target = self.revealViewController()
menuButton.action = "revealToggle:"
self.navigationController?.navigationBar.addGestureRecognizer(revealViewController().panGestureRecognizer())
self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
Upvotes: 0