tr1ckyf0x / Coordinator

Implementation of Mediator pattern to control screens flow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coordinator

Cocoapods release Carthage compatible

Implementation of Mediator pattern to control screens flow.

Installation

Requires Swift 5

Carthage

Add this line into your Cartfile and run carthage update

github "valnoc/Coordinator" ~> 1.0

Cocoapods

Add this line into your Podfile under a test target and run pod update

pod 'VBCoordinator', '~> 1.0'

Usage

Check these articles (part1, part2) to get the idea of what coordinator is.

In short, a coordinator is a mediator between several screens or between other coordinators (screens flow). It opens ViewControllers and other coordinators. All screens are developed to be totally independent from each other. A ViewController is never opened from another one - only coordinator should do this.

You create a hierarchy of coordinators starting with the AppCoordinator. He "knows" which flow should be first depending on situation.

License

Coordinator is available under MIT License.

About

Implementation of Mediator pattern to control screens flow.

License:MIT License


Languages

Language:Swift 64.1%Language:Ruby 28.6%Language:Objective-C 7.3%