Skip to content

Instantly share code, notes, and snippets.

@meyusufdemirci
Created January 23, 2019 15:23
Show Gist options
  • Save meyusufdemirci/b8b0e87e1dadf842ae39be7714093c7b to your computer and use it in GitHub Desktop.
Save meyusufdemirci/b8b0e87e1dadf842ae39be7714093c7b to your computer and use it in GitHub Desktop.
// MARK: Wireframe
protocol ContactDetailWireframeProtocol: class {}
// MARK: Presenter
protocol ContactDetailPresenterProtocol: class {
var interactor: ContactDetailInteractorInputProtocol! { get set }
func getContact()
}
// MARK: Interactor
// Interactor -> Presenter
protocol ContactDetailInteractorOutputProtocol: class {}
// Presenter -> Interactor
protocol ContactDetailInteractorInputProtocol: class {
var presenter: ContactDetailInteractorOutputProtocol! { get set }
}
// MARK: View
protocol ContactDetailViewProtocol {
var presenter: ContactDetailPresenterProtocol! { get set }
func showContact(contact: Contact)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment