navigation-stack

:octocat: NavigationStack is a stack-modeled UI navigation controller. Swift UI library made by @Ramotion - https://github.com/Ramotion/swift-ui-animation-components-and-libraries

Github stars Tracking Chart


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.

Main metrics

Overview
Name With OwnerRamotion/navigation-stack
Primary LanguageSwift
Program languageSwift (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2016-02-25 15:15:21
Pushed At2020-04-06 06:57:43
Last Commit At2020-04-06 09:57:43
Release Count16
Last Release Name3.1.0 (Posted on 2019-11-12 16:11:48)
First Release Name0.0.1 (Posted on 2016-03-02 12:04:17)
用户参与
Stargazers Count2.3k
Watchers Count62
Fork Count172
Commits Count185
Has Issues Enabled
Issues Count13
Issue Open Count4
Pull Requests Count8
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private