Skip to content

Ramotion/navigation-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9efb3a2 Β· Apr 6, 2020
Jun 1, 2016
Nov 12, 2019
Sep 17, 2018
Sep 17, 2018
Dec 14, 2018
Feb 25, 2016
Sep 27, 2018
Jan 18, 2018
Nov 11, 2017
Nov 11, 2017
Jan 20, 2017
Mar 11, 2016
Jan 20, 2017
Feb 25, 2016
Apr 3, 2019
Nov 12, 2019
Apr 6, 2020
Nov 11, 2017
Nov 11, 2017
Feb 17, 2017
Mar 11, 2016
Apr 28, 2018

Repository files navigation

NAVIGATION STACK

Navigation Stack is a library with stack-modeled UI navigation controller.


We specialize in the designing and coding of custom UI for Mobile Apps and Websites.

Stay tuned for the latest updates:


Twitter CocoaPods CocoaPods CocoaPods Travis codebeat badge Carthage compatible Donate

Requirements

  • iOS 9.0+
  • Xcode 9

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.

This library is a part of a selection of our best UI open-source projects.

If you use the open-source library in your project, please make sure to credit and backlink to www.ramotion.com

πŸ“± Get the Showroom App for iOS to give it a try

Try this UI component and more like this in our iOS app. Contact us if interested.