I can't really understand how to unwrap this piece of code, I tried with if, guard and with forced unwrapping, but they all crash when the id doesn't exist. Is it possible just to make it so that it shows print() in the console and not execute any further code
guard let historyViewController = self.storyboard?.instantiateViewController(withIdentifier: "historyViewNav") else{
fatalError("No history view controller found ");
}
historyViewController.modalTransitionStyle = .flipHorizontal
present(historyViewController, animated: true, completion: nil)