Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Created January 23, 2019 15:22
Show Gist options
  • Select an option

  • Save meyusufdemirci/7ed19a7fc45fb8b8d7422fa526d3f9d7 to your computer and use it in GitHub Desktop.

Select an option

Save meyusufdemirci/7ed19a7fc45fb8b8d7422fa526d3f9d7 to your computer and use it in GitHub Desktop.
class ContactDetailPresenter {
var view: ContactDetailViewProtocol!
var interactor: ContactDetailInteractorInputProtocol!
var router: ContactDetailWireframeProtocol!
var data: Any?
}
extension ContactDetailPresenter: ContactDetailPresenterProtocol {
func getContact() {
guard let contact = data as? Contact else {
return
}
view.showContact(contact: contact)
}
}
extension ContactDetailPresenter: ContactDetailInteractorOutputProtocol {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment