Переглядів 70,020
The coordinator pattern takes responsibility for navigation out of your view controllers and into a separate class, helping you make your view controllers smaller and simpler.
In this video I'm going to explain the problem coordinators solve, walk you through the code required to use them, then give a complete coding demo with a new Xcode project.
Coordinators were pioneered on iOS by Soroush Khanlou - he does tweet from time to time at @khanlou, but really you should check out his blog at khanlou.com.
I've also published articles on coordinators you might find useful:
- How to use the coordinator pattern in iOS apps: www.hackingwithswift.com/arti...
- Using closures with the coordinator pattern: www.hackingwithswift.com/arti...
- How to create a custom Xcode template for coordinators: www.hackingwithswift.com/arti...