Slide 59
Slide 59 text
import CookpadCore
import UIKit
public final class {{ name }}ViewController: UIViewController, {{ name }}ViewContract
{
private var presenter: {{ name }}PresenterContract
!
private let environment: Environmen
t
init(environment: Environment)
{
self.environment = environmen
t
super.init(nibName: nil, bundle: nil
)
}
@available(*, unavailable
)
required init?(coder: NSCoder)
{
fatalError("init(coder:) has not been implemented"
)
}
func inject(presenter: {{ name }}PresenterContract)
{
self.presenter = presente
r
}
override public func viewDidLoad()
{
super.viewDidLoad(
)
// Insert code here to connect presenter
}
ม