i wish to open ViewController From AppDelegate when i get notification from OneSignal, and its working however the issue is when ViewController opened there may be not toolbar , how am i able to open it with toolbar ? i’m utilizing embed in Navigation Controller.
that is the code in AppDelegate to open ViewController
let mainStoryboard: UIStoryboard = UIStoryboard(title: "Foremost", bundle: nil) let instantiateRedViewController : ViewController = mainStoryboard.instantiateViewController(withIdentifier: "ViewControllerID") as! ViewController instantiateRedViewController.receivedURL = additionalData["openURL"] as! String? self.window = UIWindow(body: UIScreen.foremost.bounds) self.window?.rootViewController = instantiateRedViewController self.window?.makeKeyAndVisible()