Slide 16
Slide 16 text
DI continued
• ViewController got it through Property Injection, the
WeatherDataSource through Initializer Injection.
• Either is fine, use whatever suits your needs best.
• Usually, because of storyboards, ViewControllers will
need to get it through property injection, all other
classes though that can be initialized, should get it
through their inits.