https://github.com/ramotion/navigation-stack
:octocat: NavigationStack is a stack-modeled UI navigation controller. Swift UI library made by @Ramotion
https://github.com/ramotion/navigation-stack
component ios library swift
Last synced: 14 days ago
JSON representation
:octocat: NavigationStack is a stack-modeled UI navigation controller. Swift UI library made by @Ramotion
- Host: GitHub
- URL: https://github.com/ramotion/navigation-stack
- Owner: Ramotion
- License: mit
- Created: 2016-02-25T15:15:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-06T06:57:43.000Z (about 5 years ago)
- Last Synced: 2025-03-04T07:40:20.341Z (about 2 months ago)
- Topics: component, ios, library, swift
- Language: Swift
- Homepage: https://www.ramotion.com/agency/app-development/
- Size: 18.9 MB
- Stars: 2,303
- Watchers: 63
- Forks: 172
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
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:
![]()
[](http://twitter.com/Ramotion)
[](https://cocoapods.org/pods/Navigation-stack)
[](http://cocoapods.org/pods/Navigation-stack)
[](https://cdn.rawgit.com/Ramotion/navigation-stack/master/docs/index.html)
[](https://travis-ci.org/Ramotion/navigation-stack)
[](https://codebeat.co/projects/github-com-ramotion-navigation-stack)
[](https://github.com/Ramotion/navigation-stack)
[](https://paypal.me/Ramotion)## Requirements
- iOS 9.0+
- Xcode 9## Installation
Just add the Source folder to your project.
or use [CocoaPods](https://cocoapods.org) with Podfile:
``` ruby
pod 'Navigation-stack'
```or [Carthage](https://github.com/Carthage/Carthage) users can simply add to their `Cartfile`:
```
github "Ramotion/navigation-stack"
```## Usage
1) YourNavigationController inherit from `NavigationStack`
2) add code to root viewViewController
``` swift
override func viewDidLoad() {
super.viewDidLoad()
navigationController!.interactivePopGestureRecognizer?.delegate = self
}
`````` swift
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](./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.