Created
July 22, 2019 13:23
-
-
Save robertherdzik/4171a6a719dc86115d9d4aca33171ec3 to your computer and use it in GitHub Desktop.
This file contains 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
//------------------------------------------------ | |
// 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