Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanpe Catalán committed Mar 31, 2017
2 parents 6c4ad11 + f3557c9 commit 697720c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Module VIPER.xctemplate/___FILEBASENAME___Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,20 @@
import UIKit

class ___FILEBASENAMEASIDENTIFIER___Router: ___FILEBASENAMEASIDENTIFIER___WireframeProtocol {


weak var viewController: UIViewController?

static func create___FILEBASENAMEASIDENTIFIER___Module() -> UIViewController {
// Change to get view from storyboard if not using progammatic UI
let view = ___FILEBASENAMEASIDENTIFIER___ViewController(nibName: nil, bundle: nil)
let interactor = ___FILEBASENAMEASIDENTIFIER___Interactor()
let router = ___FILEBASENAMEASIDENTIFIER___Router()
let presenter = ___FILEBASENAMEASIDENTIFIER___Presenter(interface: view, interactor: interactor, router: router)

view.presenter = presenter
interactor.presenter = presenter
router.viewController = view

return view
}
}

0 comments on commit 697720c

Please sign in to comment.