Have a lot of trouble trying to implement SWRevealViewController:
I've followed a few different tutorials and still can't get it to work. After I've followed the directions:
- import SWRevealController Obj-C Files
- add bridging header and import SWRevealController
- add viewcontroller to storyboard and set class "SWRevealViewController"
- I have a login screen so I added a navigation controller before the login screen and hid the navigation bar on this view
- have the login screen segue to the revealViewController
- add tableViewController and create segue w/ identifier "sw_rear" class "none", I've tried this also having the class as "SWRevealViewControllerSegueSetController"
- add segue w/ identifer "sw_front" that connects to the navigation controller which is connected to my home screen and added the class "SWRevealViewSegueSetController"
- added the menu item
- made an outlet for the menu item
added the following code in viewDidLoad
if revealViewController() != nil { print("this is running") menuButton.target = revealViewController() menuButton.action = #selector(SWRevealViewController.revealToggle(_:)) self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer()) }
When I load up the app there are no errors and when I click on the menuButton nothing happens.
Any advice would be great, I've been trying to figure this out for two days.
**Edit - Just noticed that the pan gesture recognizer seems to bring me back to my login page **Edit - Also wanted to note that menu item I added is a button, not an image....