Latest 0.1.1
Homepage https://github.com/CodeGeekXu/CGModelTransition
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

CGModelTransition

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS >= 8.0
ARC

Installation

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

pod 'CGModelTransition'

Usage

#import <CGModelTransition/CGModelTransition.h>

@implementation CGTopViewController

- (instancetype)init
{
    self = [super init];
    if (self) {
        CGModelTransitionController *transition = [[CGModelTransitionController alloc]initWithPresentedViewController:self];
        transition.presentedContentSize = CGSizeMake(275, 230);;
        transition.transitionAnimation = CGTransitionAnimationSlideFromTop;
        transition.animateDuration = 1;
        self.modelTransition = transition;
    }
    return self;
}

@end
    CGTopViewController *vc = [CGTopViewController new];
    [self presentViewController:vc animated:YES completion:nil];

Author

[email protected]

Latest podspec

{
    "name": "CGModelTransition",
    "version": "0.1.1",
    "summary": "A custom transition for present modal view controller",
    "homepage": "https://github.com/CodeGeekXu/CGModelTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/CodeGeekXu/CGModelTransition.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CGModelTransition/Classes/**/*"
}

Pin It on Pinterest

Share This