Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertherdzik/4171a6a719dc86115d9d4aca33171ec3 to your computer and use it in GitHub Desktop.
Save robertherdzik/4171a6a719dc86115d9d4aca33171ec3 to your computer and use it in GitHub Desktop.
//------------------------------------------------
// VIEWCONTROLLER
protocol __baseName__ViewProtocol: class {
}
final class __baseName__ViewController: UIViewController {
private var presenter: __baseName__PresenterProtocol
init(presenter: __baseName__PresenterProtocol) {
self.presenter = presenter
super.init(nibName: nil, bundle: nil)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
extension __baseName__ViewController: __baseName__ViewProtocol {
}
//------------------------------------------------
//PRESENTER
protocol __baseName__PresenterProtocol {
}
final class __baseName__Presenter: __baseName__PresenterProtocol {
weak var view: __baseName__ViewProtocol?
}
extension __baseName__Presenter: __baseName__InteractorOutput {
}
//------------------------------------------------
//INTERACTOR
protocol __baseName__InteractorInput {
}
protocol __baseName__InteractorOutput: class {
}
final class __baseName__Interactor: __baseName__InteractorInput {
weak var output: __baseName__InteractorOutput?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment