If you're familiar with Cocoacasts, then you should know that I'm a big proponent of dependency injection. I tend to discourage developers from using the singleton pattern if the goal is creating an object that is easily accessible from anywhere in the project. That's not what the singleton pattern is about. You can learn more about the singleton pattern by reading Are Singletons Bad.
Subscribe to Cocoacasts Plus to watch this episode.
Mastering Navigation With Coordinators
Dependency Injection and the Coordinator Pattern
by Bart Jacobs in Patterns
Swift 4
Xcode 10
iOS 12
Mastering Navigation With Coordinators
-
08:11
-
2 Adopting the Coordinator Pattern
09:19
-
4 Navigating With a Coordinator
10:26
-
5 Adding Flexibility and Dynamism
12:36
-
12 Storyboards, XIBs, and Code
05:35
-
13 Dependency Injection and the Coordinator Pattern
08:27
-
14 Working With Tab Bar Controllers
10:19
-
16 MVVM-C and Separation of Concerns
06:32