CrossNavigationcontroller
Move to cross using UINavigationController
Requirements
- iOS 9.0+
- Swift 3.0+
- ARC
install
CocoaPods
Adding the following to your Podfile and running pod install:
use_frameworks!
pod "CrossNavigationcontroller"import
import CrossNavigationcontrollerUsage
- Change
UINavigationControllertoCrossNavigationcontroller - Change
UIViewControllertoCrossViewController - If want to use Gesture, set
CrossGestureControllableprotocol at CrossViewController subclass
Move (push, pop)
func moveViewController(_ viewController: CrossViewController, direction : Cross.Direction, animated: Bool)Cross.Direction => .up or .down or .left or right
Move to root
// UINavigationController method
func moveToRootViewController(animated: Bool) -> [UIViewController]?Customize
If change the start coordinates
In CrossNavigationcontroller
override func viewDidLoad() {
super.viewDidLoad()
setUp(initialCoordinate: (X, Y))
}If use custom transition
In CrossNavigationcontroller
override func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationControllerOperation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return CustomTransionAnimator()
}License
This project is made available under the MIT license. See LICENSE file for details.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


