CGModelTransition 0.1.1

CGModelTransition 0.1.1

Maintained by CodeGeekXu.



CGModelTransition

CI Status Version License Platform

Example

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

Requirements

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], [email protected]