aronbalog / navigation-stack

NavigationStack is a stack-modeled navigation controller

Home Page:business.ramotion.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

header

navigation-stack

Twitter CocoaPods CocoaPods CocoaPods Travis codebeat badge Carthage compatible

About

This project is maintained by Ramotion, an agency specialized in building dedicated engineering teams and developing custom software.

Contact our team and we’ll help you work with the best engineers from Eastern Europe.

Animation

The iPhone mockup available here.

Requirements

  • iOS 9.0+
  • Xcode 7.3

Installation

Just add the Source folder to your project.

or use CocoaPods with Podfile:

pod 'Navigation-stack'

or Carthage users can simply add to their Cartfile:

github "Ramotion/navigation-stack"

Usage

  1. YourNavigationController inherit from NavigationStack

  2. add code to root viewViewController

override func viewDidLoad() {
    super.viewDidLoad()
    navigationController!.interactivePopGestureRecognizer?.delegate = self
  }
extension YourViewController: UIGestureRecognizerDelegate {
  func gestureRecognizerShouldBegin(gestureRecognizer: UIGestureRecognizer) -> Bool {

    if navigationController?.viewControllers.count == 2 {
      return true
    }

    if let navigationController = self.navigationController as? NavigationStack {
      navigationController.showControllers()
    }

    return false
  }
}

License

Navigation-stack is released under the MIT license. See LICENSE for details.

Follow Us

Twitter URL Twitter Follow

About

NavigationStack is a stack-modeled navigation controller

business.ramotion.com

License:MIT License


Languages

Language:Swift 96.7%Language:Objective-C 1.7%Language:Ruby 1.6%