Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.61 KB

File metadata and controls

27 lines (18 loc) · 1.61 KB

Swift - Coordinator Pattern

This repository is an example developed with Swift UIKit, inspired by Soroush Khanlou's Coordinator design pattern.

Different methods implemented in order to avoid Retain Cycle

   Branch   
main Terminating the Coordinator within the deInit method of the ViewController
version-2 Abstracting the termination process on the main branch from the ViewController, moving it into the Coordinator, and calling the abstracted method within the deInit method
version-3 version-2 with TabBar
version-4 Creating the BaseViewController class that will be inherited by the other ViewControllers, and terminating the Coordinator from within the BaseViewController

Credits

Soroush Khanlou: Presenting Coordinators
How to use the coordinator pattern in iOS apps
Advanced coordinators in iOS
Karin Prater - Advanced Navigation