Created
May 10, 2019 23:56
-
-
Save shabib87/309565f62b3bf75b10ab76a743e069e9 to your computer and use it in GitHub Desktop.
Overriding root view controller confronting to StoryboardInitializable to initialize from storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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