Skip to content

bfernandesbfs/CoordinatorKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoordinatorKit

Swift Package Manager Travis

Coordinator chain responsability

Requirements

  • iOS 11.0+
  • Xcode 10.0+

Installation

Dependency Managers

Swift Package Manager

To use CoordinatorKit as a Swift Package Manager package just add the following in your Package.swift file.

// swift-tools-version:4.1

import PackageDescription

let package = Package(
    name: "HelloCoordinatorKit",
    dependencies: [
        .package(url: "https://github.com/bfernandesbfs/CoordinatorKit.git", .upToNextMajor(from: "1.0.0"))
    ],
    targets: [
        .target(name: "HelloCoordinatorKit", dependencies: ["CoordinatorKit"])
    ]
)

Manually

  • Copy files Source/Core directory to yours project.

Usage

Add import CoordinatorKit and use Coordinator protocol to implement the objects needed into your class

import CoordinatorKit

final class AppCoordinator: Coordinator {

    var rootViewController: UINavigationController

    init() {
        rootViewController = UINavigationController()
    }
}

Presenting an controller

CoordinatorKit have an resource to presenting:

  • ViewTrasition
  • NavigationViewTransition
  • TabBarViewTransition

to use:

let controller = MyViewController()
router(ViewTransition.present(controller)) {
    print("End trasition")
}

Contributing

Issues and pull requests are welcome!

See Contributing for details.

Author

Bruno Fernandes @bfernandesbfs

License

CoordinatorKit is released under the MIT license. See LICENSE for details.

About

Simple design patterns to coordinator

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages