Last active
January 5, 2020 11:58
-
-
Save zafarivaev/0ce31c40fd9cbc3709126c65cd94d693 to your computer and use it in GitHub Desktop.
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
class QuotesPresenter: ViewToPresenterQuotesProtocol { | |
// MARK: Properties | |
weak var view: PresenterToViewQuotesProtocol? | |
var interactor: PresenterToInteractorQuotesProtocol? | |
var router: PresenterToRouterQuotesProtocol? | |
var quotesStrings: [String]? | |
// MARK: Inputs from view | |
func viewDidLoad() { | |
print("Presenter is being notified that the View was loaded.") | |
view?.showHUD() | |
interactor?.loadQuotes() | |
} | |
.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment