Created
October 2, 2020 12:03
-
-
Save weAreJack/ad64667563946e8d3c0a1922180c7ae0 to your computer and use it in GitHub Desktop.
LoginModuleExample
This file contains hidden or 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
import UIKit | |
class LoginModule { | |
func build() -> UIViewController { | |
let view = LoginViewController() | |
let router = LoginRouter() | |
let interactor = LoginInteractor() | |
let presenter = LoginPresenter(interface: view, interactor: interactor, router: router) | |
view.presenter = presenter | |
router.viewController = view | |
interactor.presenter = presenter | |
return view | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment