Open Iniyarajan opened 7 years ago
To change the front view controller, use revealviewcontroller setFontViewController
I was able to do it with this code:
let storyboard = UIStoryboard(name: "Main", bundle: nil) let logInViewController = storyboard.instantiateViewController(withIdentifier: "logInVC") self.revealViewController().setFront(logInViewController, animated: true)
I used a SWRevealViewController with front and rear and it works great. Now I need to switch between front view controller based on login condition(I need to show admin and messenger based on condition as front).kindly help me to implement the same.