Created
January 23, 2019 15:22
-
-
Save meyusufdemirci/7ed19a7fc45fb8b8d7422fa526d3f9d7 to your computer and use it in GitHub Desktop.
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
| 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