where MainInterface is the string name of the storyboard file
and SearchDisplayViewController is the id of the view controller created in the storyboard.
1 2 3 4 5 6 7 |
if let viewController = UIStoryboard(name: "MainInterface", bundle: nil).instantiateViewController(withIdentifier: "SearchDisplayViewController") as? SearchDisplayViewController { print("1---->") present(viewController, animated: true, completion: nil) } |