Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RootViewController: UIViewController, StoryboardInitializable {
- class func instantiateFromStoryboard(presenter aPresenter: Presenter) -> UIViewController {
- fatalError("Override failed. Dependency injection not processed. Presenter injection hampered.")
- }
- // Preventing segue to support dependency injection
- override func shouldPerformSegue(withIdentifier identifier: String, sender: Any?) -> Bool {
- fatalError("Segues should not be used. Presenter injection hampered.")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement