我正在尝试使用SwinjectStoryboard注册在tabBarController和navigationController中注册的viewControllers。 TabBar->导航-> ViewController 我该怎么做?
这是我到目前为止所拥有的:
defaultContainer.storyboardInitCompleted(TodaysWeatherVC.self) { r, c in
c.weatherViewModel = r.resolve(WeatherViewModel.self)
}
defaultContainer.storyboardInitCompleted(ForecastVC.self) { r, c in
c.forecastViewModel = r.resolve(WeatherViewModel.self)
}