Customized transitions between view controllers for iOS. One Line of code with fully interactive animations. Written purely in Swift.
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:
To install it, simply add the following line to your Podfile:
pod "WYInteractiveTransitions"
git clone https://github.com/yuwang17/WYInteractiveTransitions.git
Drag WYInteractiveTransitions.swift
file into your own project
Then import the module in your file
import WYInteractiveTransitions
If you're Objective-C user, please include the header file
#import "WYInteractiveTransitions-Swift.h"
let transitionMgr = WYInteractiveTransitions()
transitionMgr.configureTransition(duration: 0.5, toView: toView!, panEnable: true, type: WYTransitoinType.Up)
performSegueWithIdentifier
presentViewController
dismissViewController
unwindViewController
let transitionMgr = WYInteractiveTransitions()
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "showSegue" {
let toView = segue.destinationViewController as? UIViewController
transitionMgr.configureTransition(duration: 0.5, toView: toView!, panEnable: true, type: WYTransitoinType.Up)
}
}
git clone https://github.com/yuwang17/WYInteractiveTransitions.git
cd WYInteractiveTransitions/Example
open WYInteractiveTransitions.xcodeproj
Ctrl + R
WYInteractiveTransitions is available under the MIT License, see LICENSE for more infomation.