Latest 1.0.3
Homepage https://github.com/tamastimar/TTZoomTransition
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

Travis
Coveralls
CocoaPods

TTZoomTransition is a custom modal view controller transition which displays the presented view controller by zoom animation.

TTZoomTransition in action

Installation

You can use TTZoomTransition via CocoaPods. Add the following line to your Podfile:

Podfile

pod TTZoomTransition

Usage

Set modalPresentationStyle property of your modal view controller to UIModalPresentationCustom. Also set the transitioningDelegate property.

ModalViewController* modalVC = [[ModalViewController alloc] init];
modalVC.modalPresentationStyle = UIModalPresentationCustom;
modalVC.transitioningDelegate = self;

[self presentViewController:modalVC animated:YES completion:nil];

In your transitioning delegate implement the following methods of UIViewControllerTransitioningDelegate:

- (id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source
{
    TTZoomTranstition* zoomTransition = [[TTZoomTranstition alloc] init];
    return zoomTransition;
}

- (id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
    TTZoomTranstition* zoomTransition = [[TTZoomTranstition alloc] init];
    zoomTransition.presenting = NO;
    return zoomTransition;
}

Demo

pod try TTZoomTransition

If you don’t have CocoaPods on your machine, get it: [sudo] gem install cocoapods.

Requirements

  • iOS 9+

Contact

Tamás Tímár

License

TTZoomTransition is available under the MIT license. See the LICENSE file for more info.

Acknowledgements

Images in example are from Pixabay.

Latest podspec

{
    "name": "TTZoomTransition",
    "version": "1.0.3",
    "authors": {
        "Tamu00e1s Tu00edmu00e1r": "[email protected]"
    },
    "homepage": "https://github.com/tamastimar/TTZoomTransition",
    "platforms": {
        "ios": "9.0"
    },
    "summary": "A simple custom modal view controller transition.",
    "source": {
        "git": "https://github.com/tamastimar/TTZoomTransition.git",
        "tag": "1.0.3"
    },
    "license": "MIT",
    "frameworks": "UIKit",
    "source_files": "TTZoomTransition",
    "requires_arc": true,
    "screenshots": "https://raw.githubusercontent.com/tamastimar/TTZoomTransition/assets/ttzoomtransition-screenshot.gif"
}

Pin It on Pinterest

Share This