I use Typhoon and I need selector for injection property
definition.injectProperty(Selector("viewModel"), with: self.viewModel.inviteViewModel())
but compiler don't see selector define as var.
for example:
if I have var viewModel: AuthViewModel!
and
use #selector(viewModel)
so I get Argument of '#selector' cannot refer to a property
UPDATE:
I have the problem from used Typhoon in Swift. I resolve my problem like renouncement from Typhoon and switch to Swinject. Also now I can use struct for injection and much more.