神刀安全网

Show DN: Navigation Stack [Swift, Open Source]

Show DN: Navigation Stack [Swift, Open Source]

navigation-stack

Show DN: Navigation Stack [Swift, Open Source] Show DN: Navigation Stack [Swift, Open Source] Show DN: Navigation Stack [Swift, Open Source] Show DN: Navigation Stack [Swift, Open Source] Show DN: Navigation Stack [Swift, Open Source]

shot on dribbble : Show DN: Navigation Stack [Swift, Open Source]

The iPhone mockup available here .

Requirements

  • iOS 9.0+
  • Xcode 7.2

Installation

Just add the Source folder to your project.

or use CocoaPods with Podfile:

pod 'Navigation-stack', '~> 0.0.2'

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   } }

Licence

Navigation-stack is released under the MIT license. SeeLICENSE for details.

About

The project maintained by app development agency Ramotion Inc. See our otheropen-source projects or hire us to design, develop, and grow your product.

Show DN: Navigation Stack [Swift, Open Source] Show DN: Navigation Stack [Swift, Open Source]

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Show DN: Navigation Stack [Swift, Open Source]

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮