Created
October 2, 2020 12:04
-
-
Save weAreJack/126f72e5c5a73abb4bb6af77af5c6aac to your computer and use it in GitHub Desktop.
LoginProtocolExample
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 Foundation | |
// MARK: - View | |
/// Presenter -> ViewController | |
protocol LoginViewProtocol: AnyObject { | |
var presenter: LoginPresenterProtocol? { get set } | |
} | |
// MARK: - Interactor | |
/// Presenter -> Interactor | |
protocol LoginInteractorInputProtocol: AnyObject { | |
var presenter: LoginInteractorOutputProtocol? { get set } | |
} | |
/// Interactor -> Presenter | |
protocol LoginInteractorOutputProtocol: AnyObject { | |
} | |
// MARK: - Presenter | |
/// ViewController -> Presenter | |
protocol LoginPresenterProtocol: AnyObject, ViewControllerLifeCycle { | |
var interactor: LoginInteractorInputProtocol? { get set } | |
} | |
// MARK: Router | |
/// Navigation | |
protocol LoginRouterProtocol: AnyObject, DefaultRouterProtocol { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment