SWRevealViewController working only for one ViewController
0
I have about 10+ ViewController's. SWRevealViewController is a RootController . I have a segue from SWRevealViewController to SideMenuController (my ViewController with menu) with id sw_rear . And I have other segues (id sw_front ) from SWRevealViewController to another ViewController's. But SWRevealViewController working only with first ViewController. In other I have a "nil". My code: if self.revealViewController() != nil { self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer()) } I want show side menu in all my ViewController's, not only first. How can I fix it?
swift menu swrevealviewcontroller
share | improve this question