Latest 0.1.0
Homepage https://github.com/juanuribeo13/JUOShrinkPresent
License MIT
Platforms ios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Juan Uribe/JUOShrinkPresent.svg?style=flat)](https://travis-ci.org/Juan Uribe/JUOShrinkPresent)
Version
License
Platform

Installation

JUOShrinkPresent is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'JUOShrinkPresent', '~> 0.1.0'

Usage

After installing, you just need to have an instance of JUOShrinkTransitioningDelegate and set it as the transitioningDelegate for your controller.

@property (strong, nonatomic) JUOShrinkTransitioningDelegate *shrinkTransitioningDelegate;
...
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

    if ([segue.identifier isEqualToString:@"presentViewController"]) {
        UIViewController *toVC = segue.destinationViewController;
        toVC.modalPresentationStyle = UIModalPresentationCustom;
        toVC.transitioningDelegate = self.shrinkTransitioningDelegate;
    }
}

If you want to customize the transition duration, shrink scale and other things you can use the JUOShrinkDelegate.

For more details go check the example project. To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Juan Uribe, [email protected]

License

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

Latest podspec

{
    "name": "JUOShrinkPresent",
    "version": "0.1.0",
    "summary": "Custom presentation delegate that shrinks the VC in the back.",
    "description": "                        JUOShrinkPresent is a custom presentation delegate that shrinks the ViewControllern                        that stays in the back like the mail app does in iOS8 when composing a new email.n",
    "homepage": "https://github.com/juanuribeo13/JUOShrinkPresent",
    "license": "MIT",
    "authors": {
        "Juan Uribe": "juanuribe[email protected]"
    },
    "source": {
        "git": "https://github.com/juanuribeo13/JUOShrinkPresent.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "JUOShrinkPresent": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This