Open yonathansteam opened 6 years ago
Can you try this.. It will helps you.
let storyboard = UIStoryboard(name: "Main", bundle: nil) let sw = storyboard.instantiateViewController(withIdentifier: "RevealViewController") as! SWRevealViewController self.window?.rootViewController = sw
let destinationController = storyboard.instantiateViewController(withIdentifier: "NotificationViewController") as! NotificationViewController
let navigationController = UINavigationController(rootViewController: destinationController)
sw.pushFrontViewController(navigationController, animated: true)
i already tried that not working still go to home if i push to specific VC
Can you try this.. It will helps you.
let storyboard = UIStoryboard(name: "Main", bundle: nil) let sw = storyboard.instantiateViewController(withIdentifier: "RevealViewController") as! SWRevealViewController self.window?.rootViewController = sw
let destinationController = storyboard.instantiateViewController(withIdentifier: "NotificationViewController") as! NotificationViewController let navigationController = UINavigationController(rootViewController: destinationController) sw.pushFrontViewController(navigationController, animated: true)
Thank's this worked for me.
How to push specific view controller from push notification in SWRevealViewController ? For now i can only set to homeVC how to push to anotherVC ?
//Handle payload data from push notification