CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Apr 2016 |
| SPMSupports SPM | ✗ |
Maintained by Yu Wang.
Interactive only can be done with UINavigationController? No! WYInteractiveTransitions come to rescue, bringing interactive transition to model presentation between view controllers.
Customized transitions between view controllers for iOS. One Line of code with fully interactive animations. Written purely in Swift.
Four animations is embedded right now:
git clone https://github.com/yuwang17/WYInteractiveTransitions.gitDrag WYInteractiveTransitions.swift file into your own project
Then import the module in your file
import WYInteractiveTransitionsIf you’re Objective-C user, please include the header file
#import "WYInteractiveTransitions-Swift.h"1) Create instance
let transitionMgr = WYInteractiveTransitions()2) Configure WYInteractiveTransitions in proper position
transitionMgr.configureTransition(duration: 0.5, toViewController: toView!,
handGestureEnable: true, transitionType: WYTransitoinType.Push)3) Present view controller or dismiss would invoke the transitions
performSegueWithIdentifierpresentViewControllerdismissViewControllerunwindViewControllerlet transitionMgr = WYInteractiveTransitions()
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "showSegue" {
let toView = segue.destinationViewController as? UIViewController
transitionMgr.configureTransition(duration: 0.5, toViewController: toView!,
handGestureEnable: true, transitionType: WYTransitoinType.Push)
}
}1) Download the repository
git clone https://github.com/yuwang17/WYInteractiveTransitions.git
cd WYInteractiveTransitions/Example2) Open the workspace
open WYInteractiveTransitions.xcodeproj3) Compile and run the app in simulator
Ctrl + R WYInteractiveTransitions is available under the MIT License, see LICENSE for more infomation.