TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✓ |
Maintained by hryk224.
Move to cross using UINavigationController
import CrossNavigationcontroller
UINavigationController
to CrossNavigationcontroller
UIViewController
to CrossViewController
CrossGestureControllable
protocol at CrossViewController subclassfunc moveViewController(_ viewController: CrossViewController, direction : Cross.Direction, animated: Bool)
Cross.Direction
=> .up
or .down
or .left
or right
// UINavigationController method
func moveToRootViewController(animated: Bool) -> [UIViewController]?
In CrossNavigationcontroller
override func viewDidLoad() {
super.viewDidLoad()
setUp(initialCoordinate: (X, Y))
}
In CrossNavigationcontroller
override func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationControllerOperation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return CustomTransionAnimator()
}
This project is made available under the MIT license. See LICENSE file for details.