I want to auto launch on my SWRevealViewController view after I've reach my view.
For exemple, I'm on my SWRevealViewController and I go on an another view. If I want to go back, I want to go on my previous state : SWRevealViewController in rear view.
When I've tried, I've made this :
if (myPreviousVC == "editProfile")
{
UIApplication.sharedApplication().sendAction(menuButton.action, to: menuButton.target, from: self, forEvent: nil)
}
This code just push my menuButton that launch my SWRevealViewController.
But I don't like this way, I want to know if there is a way to just launch my SWRevealViewController when I've reach the front view.