A custom zooming transition animation for UIViewController
Objective-C
1,690
50 commits
updated Aug 23, 2017
RMPZoomTransitionAnimator provide a custom transition zooming animation.
Not only UICollectionView, this is possible to use any other UIViewController transition.
This transition animation is like the "Pinterest" animation, but this is very simple and small library.

RMPZoomTransitionAnimator is available through CocoaPods.
To install
it, simply add the following line to your Podfile:
pod "RMPZoomTransitionAnimator"
To run the example project, clone the repo, and run pod install from the Example directory first.
Setup is as below:
Refer to the example project for details.
RMPZoomTransitionAnimator.hRMPZoomTransitionAnimatingRMPZoomTransitionAnimating protocol below, both source view controller and destination view controller
- (UIImageView *)transitionSourceImageView- (UIColor *)transitionSourceBackgroundColor- (CGRect)transitionDestinationImageViewFrame- (id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
animationControllerForOperation:(UINavigationControllerOperation)operation
fromViewController:(UIViewController *)fromVC
toViewController:(UIViewController *)toVC
{
// minimum implementation for example
RMPZoomTransitionAnimator *animator = [[RMPZoomTransitionAnimator alloc] init];
animator.goingForward = (operation == UINavigationControllerOperationPush);
animator.sourceTransition = (id<RMPZoomTransitionAnimating>)fromVC;
animator.destinationTransition = (id<RMPZoomTransitionAnimating>)toVC;
return animator;
}
Refer to the example project for details.
RMPZoomTransitionAnimator.hRMPZoomTransitionAnimatingRMPZoomTransitionAnimating protocol below, both source view controller and destination view controller
- (UIImageView *)transitionSourceImageView- (UIColor *)transitionSourceBackgroundColor- (CGRect)transitionDestinationImageViewFrameprepareForSegue:sender:- (id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented
presentingController:(UIViewController *)presenting
sourceController:(UIViewController *)source
{
// minimum implementation for example
RMPZoomTransitionAnimator *animator = [[RMPZoomTransitionAnimator alloc] init];
animator.goingForward = YES;
animator.sourceTransition = (id<RMPZoomTransitionAnimating>)source;
animator.destinationTransition = (id<RMPZoomTransitionAnimating>)presented;
return animator;
}
- (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
// minimum implementation for example
RMPZoomTransitionAnimator *animator = [[RMPZoomTransitionAnimator alloc] init];
animator.goingForward = NO;
animator.sourceTransition = (id<RMPZoomTransitionAnimating>)dismissed;
animator.destinationTransition = (id<RMPZoomTransitionAnimating>)self;
return animator;
}
If you have feature requests or bug reports, feel free to help out by sending pull requests or by creating new issues.
Masato Oshima Recruit Marketing Partners Co.,Ltd. [email protected]
RMPZoomTransitionAnimator is available under the MIT license.
659 followers · starred Jun 2018
124 followers · starred Apr 2015
246 followers · starred Feb 2016
10 followers · starred Aug 2016
A custom zooming transition animation for UIViewController
Objective-C
1,690
50 commits
updated Aug 23, 2017
RMPZoomTransitionAnimator provide a custom transition zooming animation.
Not only UICollectionView, this is possible to use any other UIViewController transition.
This transition animation is like the "Pinterest" animation, but this is very simple and small library.

RMPZoomTransitionAnimator is available through CocoaPods.
To install
it, simply add the following line to your Podfile:
pod "RMPZoomTransitionAnimator"
To run the example project, clone the repo, and run pod install from the Example directory first.
Setup is as below:
Refer to the example project for details.
RMPZoomTransitionAnimator.hRMPZoomTransitionAnimatingRMPZoomTransitionAnimating protocol below, both source view controller and destination view controller
- (UIImageView *)transitionSourceImageView- (UIColor *)transitionSourceBackgroundColor- (CGRect)transitionDestinationImageViewFrame- (id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
animationControllerForOperation:(UINavigationControllerOperation)operation
fromViewController:(UIViewController *)fromVC
toViewController:(UIViewController *)toVC
{
// minimum implementation for example
RMPZoomTransitionAnimator *animator = [[RMPZoomTransitionAnimator alloc] init];
animator.goingForward = (operation == UINavigationControllerOperationPush);
animator.sourceTransition = (id<RMPZoomTransitionAnimating>)fromVC;
animator.destinationTransition = (id<RMPZoomTransitionAnimating>)toVC;
return animator;
}
Refer to the example project for details.
RMPZoomTransitionAnimator.hRMPZoomTransitionAnimatingRMPZoomTransitionAnimating protocol below, both source view controller and destination view controller
- (UIImageView *)transitionSourceImageView- (UIColor *)transitionSourceBackgroundColor- (CGRect)transitionDestinationImageViewFrameprepareForSegue:sender:- (id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented
presentingController:(UIViewController *)presenting
sourceController:(UIViewController *)source
{
// minimum implementation for example
RMPZoomTransitionAnimator *animator = [[RMPZoomTransitionAnimator alloc] init];
animator.goingForward = YES;
animator.sourceTransition = (id<RMPZoomTransitionAnimating>)source;
animator.destinationTransition = (id<RMPZoomTransitionAnimating>)presented;
return animator;
}
- (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
// minimum implementation for example
RMPZoomTransitionAnimator *animator = [[RMPZoomTransitionAnimator alloc] init];
animator.goingForward = NO;
animator.sourceTransition = (id<RMPZoomTransitionAnimating>)dismissed;
animator.destinationTransition = (id<RMPZoomTransitionAnimating>)self;
return animator;
}
If you have feature requests or bug reports, feel free to help out by sending pull requests or by creating new issues.
Masato Oshima Recruit Marketing Partners Co.,Ltd. [email protected]
RMPZoomTransitionAnimator is available under the MIT license.
659 followers · starred Jun 2018
124 followers · starred Apr 2015
246 followers · starred Feb 2016
10 followers · starred Aug 2016