Member-only story

MVVM Dependency Injection using Storyboards

Inject those dependencies!

Steven Curtis
4 min readOct 19, 2020
Photo by Nong Vang on Unsplash

Terminology:

Dependency Injection: A technique that allows objects to receive other objects on which it depends
MVVM: An architecture pattern consisiting of Model, View and View-Model Storyboard: A visual representation of the User Interface of an Application

Useful prerequisites

The Video Alternative

The example

Sorry, this is awful. I’ve created two simple screens, neither of which display anything for the user other than a button to go onto the next screen. The first screen makes a network call but prints out the result to the console.

Simple stuff, right?

MVVM

I’m going to implement MVVM as follows:

--

--

No responses yet