2016-04-12 10:06:00 +03:00
2016-03-05 15:11:14 +03:00
2016-02-26 09:55:27 +03:00
2016-04-11 23:08:56 +02:00
2016-02-25 18:15:22 +03:00
2016-03-02 17:17:03 +03:00
2016-03-11 16:47:29 +03:00
2016-03-11 16:29:34 +03:00
2016-02-25 18:15:22 +03:00
2016-03-11 16:12:02 +03:00
2016-03-11 16:53:48 +03:00

header

navigation-stack

Twitter CocoaPods CocoaPods Travis codebeat badge

shot on dribbble: Animation

The iPhone mockup available here.

Requirements

  • iOS 9.0+
  • Xcode 7.2

Installation

Just add the Source folder to your project.

or use CocoaPods with Podfile:

pod 'Navigation-stack', '~> 0.0.2'

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
  }
}

Licence

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

About

The project maintained by app development agency Ramotion Inc. See our other open-source projects or hire us to design, develop, and grow your product.

Twitter URL Twitter Follow

S
Description
:octocat: NavigationStack is a stack-modeled UI navigation controller. Swift UI library made by @Ramotion
Readme MIT 19 MiB
Languages
Swift 96.8%
Objective-C 1.7%
Ruby 1.5%