Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question on Module file #17

Open
elprl opened this issue Jan 24, 2019 · 0 comments
Open

Question on Module file #17

elprl opened this issue Jan 24, 2019 · 0 comments

Comments

@elprl
Copy link

elprl commented Jan 24, 2019

In the module file, should the lazy var presenter and view have [unowned self] or [weak self]?

e.g.
` . private(set) lazy var presenter: MyFormMoverPresenter = { [unowned self] in
MyFormMoverPresenter(router: self.router, interactor: self.interactor)
}()

private(set) lazy var view: MyFormViewController = { [unowned self] in
	var vc = self.storyboard.viewController(MyFormViewController.self)
	vc.presenter = self.presenter
	return vc
}()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant