earlier i was initializing viewmodel object inside viewcontroller, but then when i read about SOLID principles (D = dependency invsersion) , we should not expose model view inside viewcontroller. so i thought of if i can inject viewmodel inside viewcontroller during initialization (viewcontroller is already designed in storyboard file) then that should work.
something like... ViewController having custom init like... func init(with viewModel : ViewModel)
but is it possible ??