:octocat: NavigationStack is a stack-modeled UI navigation controller. Swift UI library made by @Ramotion
See the code
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"
YourNavigationController inherit from NavigationStack
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
}
}
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
Try this UI component and more like this in our iOS app. Contact us if interested.
3,230 followers · starred Mar 2016
576 followers · starred Mar 2016
1,338 followers · starred Mar 2016
378 followers · starred Mar 2016
:octocat: NavigationStack is a stack-modeled UI navigation controller. Swift UI library made by @Ramotion
See the code
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"
YourNavigationController inherit from NavigationStack
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
}
}
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
Try this UI component and more like this in our iOS app. Contact us if interested.
3,230 followers · starred Mar 2016
576 followers · starred Mar 2016
1,338 followers · starred Mar 2016
378 followers · starred Mar 2016