I have managed to open a view controller from app delegate when clicked on push notification from viewcontroller with didReceive method. My issue is managing the hierarchy . Consider I have View A, B and C such that I will get to see View C in these steps: View A -> View B -> View C. But when I click on push notification it takes me to View C so when i click on back button of View C it should have View B and View A in the same stack order. Is it possible to do so?
Edit: This is my code if it helps
I want BaseVc > secondBaseVc > LogbookVc > DetailVc
if let info = userInfo as? [String:Any]{
let id = info["id"] as? String ?? ""
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let BaseVc = storyBoard.instantiateViewController(withIdentifier: "BaseViewController") as! BaseViewController
let secondStoryboard : UIStoryboard = UIStoryboard(name: "Second Storyboard", bundle: nil)
let secondBaseVc : BaseController = secondStoryboard.instantiateViewController(withIdentifier: "secondBaseVc") as! secondBaseVc
let LogbookVc : LogbookVc = secondStoryboard.instantiateViewController(withIdentifier: "LogbookVc") as! LogbookVc
let DetailVc: DetailVc = secondStoryboard.instantiateViewController(withIdentifier: "DetailVc") as! DetailVc
}
How should i connect them to show DetailVc but get them in order so as when i click back button i should have Logbook < secondBaseVc < Base Vc