Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Overriding root view controller confronting to StoryboardInitializable to initialize from storyboard
final class HeroDetailsViewController: RootViewController {
override class func instantiateFromStoryboard(presenter aPresenter: Presenter) -> UIViewController {
let vc = UIStoryboard(name: "Hero", bundle: nil)
.instantiateViewController(withIdentifier: "HeroDetailsViewController")
as! HeroDetailsViewController
vc.presenter = aPresenter as? HeroDetailsPresenter
return vc
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.