When first play the app(In StoryboardA), app check the user's before data, and I want to change the screen according to the content. (StoryboardB, StoryboardC, ...)
So I check the user data from server and if user data exists,
let storyboard: UIStoryboard = UIStoryboard.init(name: "Category", bundle: nil)
let nextViewController = storyboard.instantiateInitialViewController()
self.navigationController?.pushViewController(nextViewController, animated: true)
But it occurs error.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'
How I can change the screen from StoryboardA to another Storyboard(StoryboardB, StoryboardC, ...) with navigationbar?