I am using the SWRevealViewController library for a side menu within my main view. Side menu consists of tableView. I have followed This tutorial
DashBoard Controller in frontView
and tableView
is rear a view.
Route Assistant is view which segue with SWRevealViewControllerSeguePushController
class. ViewAllTripsViewController opens on "Install Now" button. In ViewAllTripsViewController
there is button (Float button ) which connect to ROuteAssistant
VC via Push segue. when ROuteAssistant
open with push segue , hamburger menu doesn't work (not showing any Side menu).
How can I show this?
I have tried this
if self.revealViewController() != nil {
menuButton.target = self.revealViewController()
menuButton.action = #selector(SWRevealViewController.revealToggle(_:))
self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
}
else
{
print("Some Problem")
}
when I select RouteAssistant From tableView(menu) is work properly but when is get access by button it goes to else condition