Latest 0.9.5
Homepage https://github.com/igrampe/ViperStackSwift
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

What is it?

ViperStackSwift is a library, that provides mechanism for connection between VIPER modules.

Also there are some base classes and protocols for VIPER module:

  • ModuleInput
  • ModuleOutput
  • ModuleRouter
  • ModuleView

With this library you can navigate between modules objects named Segues.

Segue is an object, that can customize opening UIViewController and it’s animation.
Segues are presented with protocol Segue.

  • BaseSegue is a base class implementing Segue protocol.
  • PushSegue makes a push in source viewcontroller’s navigation controller.
  • ModalSegue presents destination viewcontroller as modal.

To customize showing UIViewController, you should make a subclass of BaseSegue and override perform and unwind methods.

To perform a segue, create a Segue object, and call from your transitionHandler:

openModule(withSegue segue: Segue?, linkClosure closure: ModuleLinkClosure?) -> ModuleOpenPromise

By default you should use UIViewController for transitionHandler, there is an extension for it.

linkClosure is needed to connect parent module as moduleOutput with child module. In linkClosure you also can call some methods from child module, for example, pass a parameter from parent to child.

Lifehack

To save time, you can use generamba with this module template to generate modules.

Language

ViperStackSwift is wirtten in pure Swift.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

ViperStackSwift is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ViperStackSwift'

Author

Semyon Belokovsky

License

ViperStackSwift is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ViperStackSwift",
    "version": "0.9.5",
    "summary": "ViperStackSwift helps you with VIPER",
    "swift_version": "4.0",
    "description": "ViperStackSwift is a library, that provide mechanism for connection between VIPER modules.nAlso there are some base classes and protocols for VIPER module.nWith this library you can navigate between modules objects named Segues.nSegue is an object, that can customize opening UIViewController and it's animation.nViperStackSwift is wirtten in pure Swift.",
    "homepage": "https://github.com/igrampe/ViperStackSwift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "igrampe": "[email protected]"
    },
    "source": {
        "git": "https://github.com/igrampe/ViperStackSwift.git",
        "tag": "0.9.5"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ViperStackSwift/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This