There are several options for sending messages from a view controller to its coordinator. Up until now we exclusively used closures to notify the coordinator. Another option is delegation and that's the pattern we explore in this episode.
Subscribe to Cocoacasts Plus to watch this episode.
Mastering Navigation With Coordinators
Choosing Between Closures and Delegation
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
-
14 Working With Tab Bar Controllers
10:19
-
16 MVVM-C and Separation of Concerns
06:32
-
17 Choosing Between Closures and Delegation
08:21