class ViewController: SomeViewDelegate { private lazy var presenter = Presenter(delegate: self) } class Presenter { private weak var delegate: SomeViewDelegate! init(delegate: SomeViewDelegate) { self.delegate = delegate } }
ちなこんなの作ってました ViewController の方のlazy varのprivateを外すといいのかな (edited)