Skip to content

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

Notifications You must be signed in to change notification settings

murselibol/swift-coordinator-pattern-example

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages