NAVIGATION STACK
  • September 17, 2023

NAVIGATION STACK


Navigation Stack is a library with stack-modeled UI navigation controllar.


We Specialize in the designing and coding of custom UI for Mobail Apps and Websites.


 

Stay turned 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


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

GitHub


View Github

#component #ios #library #swift
YOU MIGHT ALSO LIKE...
Untitled

    

How to take action when a property changes

1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...

How to create your own structs? How to compute property values dynamically?

1. Creating Your Own Structs In Swift, a struct is a value type that you define with the struct keyword. ...

How to use trailing closures and shorthand syntax?

1. Trailing Closure Syntax When the last parameter to a function is a closure, you can write that closure after ...

How to create and use closures?

1. What Is a Closure (and Why Swift Loves Them) A closure in Swift is a self-contained block of functionality ...