Hi everyone, great book. Lots of info to absorb!
I’m having a go at Dependency Injection as described in chapter 4. I’m using it with the MVVM pattern from Design Patterns by Tutorials (also awesome!). This is the method to load a custom storyboard view in its view controller (from Design Patterns).
Can we use dependency injection with a custom storyboard view? The problem I’m finding is the view controller’s view has to be loaded before the custom-view can be ‘injected.’ So we then have to return the view controller first, & then set the view controller’s view as! QuestionView after that. I can’t seem to make that work from outside the initial view controller. How might this method look in a Dependency container? And how might you ‘set it’ in the view controller?