Переглядів 40,581
In my previous coordinator video we covered the basics of building an iOS app using the coordinator pattern. In this follow-up video I address six common questions that I get asked about coordinators:
- How and when do you use child coordinators?
- How do you handle moving back from a navigation controller?
- How do you pass data between view controllers?
- How do you use tab bar controllers with coordinators?
- How do you handle segues?
- How do you use protocols or closures instead?
Just like the first video there's lots of live coding so you can see exactly how each problem is solved - if you use the coordinator pattern in your apps you should hopefully find lots to learn here.
If you missed my previous coordinators video, watch it first: • How to use the Coordin...
I'm really grateful to Soroush Khanlou (khanlou.com) for taking the time to record a segment in this video. He's been working on this pattern for four years now, and continues to refine it.
I've 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...