iOSSharedViewTransition
iOS 7 based transition library for View Controllers having a Common View
- Inspired by Shared View Activity Transitions introduced in Android L.
Very Simple 3 Step Process: USAGE
- Download and include
ASFSharedViewTransition.h
andASFSharedViewTransition.m
in your Project. - In your app delegate or somewhere else in code do
#import "ASFSharedViewTransition.h"
and add tansitions like this:
[ASFSharedViewTransition addTransitionWithFromViewControllerClass:[ViewController class]
ToViewControllerClass:[DetailViewController class]
WithNavigationController:(UINavigationController *)self.window.rootViewController
WithDuration:0.3f];
Note: Transition needs to be added only one time and ASFSharedViewTransition will automatically apply transitions whenever specified UINavigationController navigates between any FromViewController and ToViewController instances.
- Confirm From & To View Controllers to
ASFSharedViewTransitionDataSource
and provide the Common View by implementing this method:
- (UIView *)sharedView
Thats it! A Sample Demo Application has been included for help.
iOSSharedViewTransition is available through [CocoaPods]( Installationhttp://cocoapods.org). To install it, simply add the following line to your Podfile:
pod 'iOSSharedViewTransition', '~> 1.0.2'