fileprivate func showGroupProfile(_ item:HomescreenLongTapItem) {
let vc = storyboard?.instantiateViewController(withIdentifier: "GroupProfileViewController") as! GroupProfileViewController
present(vc, animated: true, completion: nil)
}
I need to change VC after press on icon in HomescreenLongTap but I recive that error 'Storyboard () doesn't contain a view controller with identifier 'GroupProfileViewController' I used the StoryboardID in my code. How can I correctly navigate to next ViewController?
viewDidLoad()
. If you have, consider doing this in viewDidAppear()
Present the code like this example:
if let storyboard = storyboard{
let vc = storyboard.instantiateViewController(withIdentifier: "GroupProfileViewController") as! GroupProfileViewController
self.present(vc, animated: true)
}