项目
在 GitHub 查看


Ramotion/navigation-stack
关于
:octocat: NavigationStack 是一个以栈为模型的 UI 导航控制器。由 @Ramotion 制作的 Swift UI 库
网站与应用开发实测星标增长
- 24小时
- -3
- 7天
- -4
- 15天
- -4
- 1个月
- -6
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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:
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
YourNavigationController inherit from
NavigationStackadd 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.
探索相关项目
加载中…
