RPModalGestureTransition alternatives and similar libraries
Based on the "Modal Transition" category.
Alternatively, view RPModalGestureTransition alternatives based on common mentions on social networks and blogs.
-
BubbleTransition
A custom modal transition that presents and dismiss a controller with an expanding bubble effect. -
Presentr
Swift wrapper for custom ViewController presentations on iOS -
ZFDragableModalTransition
Custom animation transition for present modal view controller -
ElasticTransition
A UIKit custom transition that simulates an elastic drag. Written in Swift. -
RMPZoomTransitionAnimator
A custom zooming transition animation for UIViewController -
ZOZolaZoomTransition
Zoom transition that animates the entire view heirarchy. Used extensively in the Zola iOS application. -
JTMaterialTransition
An iOS transition for controllers based on material design. -
BlurryModalSegue
A custom modal segue providing a blurred overlay effect. -
View2ViewTransition
Custom interactive view controller transition from one view to another view. -
ImageOpenTransition
Beautiful and precise transitions between ViewControllers images written in Swift. -
DAExpandAnimation
A custom modal transition that presents a controller with an expanding effect while sliding out the presenter remnants. -
AZTransitions
API to make great custom transitions in one method -
ElasticTransition-ObjC
A UIKit custom transition that simulates an elastic drag.This is the Objective-C Version of Elastic Transition written in Swift by lkzhao -
Presenter
Screen transition with safe and clean code.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of RPModalGestureTransition or a related project?
README
RPModalGestureTransition
You can dismiss modal by using gesture.
Usage
1.Define animation
You define animator class inherits UIViewControllerAnimatedTransitioning. I made this in TransitionAnimator.swift.
2.Set UIViewControllerTransitioningDelegate to modal
import UIKit
extension ModalViewController: UIViewControllerTransitioningDelegate {
func presentationControllerForPresentedViewController(presented: UIViewController, presentingViewController presenting: UIViewController, sourceViewController source: UIViewController) -> UIPresentationController? {
return BackgroundPresentationController(presentedViewController: presented, presentingViewController: presenting)
}
func animationControllerForPresentedController(presented: UIViewController, presentingController presenting: UIViewController, sourceController source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return TransitionAnimator(isPresenting: true)
}
func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return TransitionAnimator(isPresenting: false)
}
func interactionControllerForPresentation(animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
return nil
}
func interactionControllerForDismissal(animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
guard let percentInteractiveTransition = percentInteractiveTransition else {
return nil
}
return percentInteractiveTransition.isInteractiveDissmalTransition ? percentInteractiveTransition : nil
}
}
3.Set InteractiveTransition to modal
Class InteractiveTransition inherits UIPercentDrivenInteractiveTransition.
class ModalViewController: UIViewController {
var percentInteractiveTransition: InteractiveTransition?
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
modalPresentationStyle = .Custom
transitioningDelegate = self
percentInteractiveTransition = InteractiveTransition(attachedViewController: self)
}
4.Define interactive animation
You have to define how animation change with gesture. You check InteractiveTransition.swift.