Skip to content

Instantly share code, notes, and snippets.

@zafarivaev
Last active January 5, 2020 11:58
Show Gist options
  • Save zafarivaev/0ce31c40fd9cbc3709126c65cd94d693 to your computer and use it in GitHub Desktop.
Save zafarivaev/0ce31c40fd9cbc3709126c65cd94d693 to your computer and use it in GitHub Desktop.
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