CarbonTransition v0.1
This version is unstable. Use at your own risk!
CarbonMaterialTransition
class YourViewController: UIViewController, UIViewControllerTransitioningDelegate {
func animationControllerForPresentedController(presented: UIViewController, presentingController presenting: UIViewController, sourceController source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return CarbonMaterialTransaction(fromPoint: startPoint)
}
func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return CarbonMaterialTransaction().reverseToPoint(endPoint)
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
segue.destinationViewController.modalPresentationStyle = .Custom
segue.destinationViewController.transitioningDelegate = self
}