Latest 1.0.0
Homepage https://github.com/sylphghost/SGControllerTransition
License MIT
Platforms ios 8.0, requires ARC
Authors

languageSupport CocoPods License MIT 

It is no longer difficult to animate the controller. Creating a transition animation requires only two steps.
SGControllerTransition

Usage

1. Create the animation

  _showAnimation = [SGTransitionAnimation transitionAnimationWithAnimationDurationl:animationTime TransitioningBlock:
^(UIViewController *fromViewController, 
UIViewController *toViewController, 
UIView *containerView, 
SGAnimationCompleteTransitionBlock completeTransitionBlock) {
    //Your animation code.

    //When your animation is complete, 
    //be sure to call the completeTransitionBlock.
}];

2. Create the transition

Transition includes four types of transitions: Push, Pop, Present, and Dismiss. According to the specific rotation movement, select the corresponding transition type.

    _transition = [SGControllerTransition 
    viewControllerPresentTransitonWithToViewController:
    toViewController 
    transitionAnimation:
    _showAnimation];

Install

CocoaPods

  1. Add pod ‘SGControllerTransition’,’~> 1.0.0′ to your Podfile.
  2. Run pod install or pod update.
  3. Import <SGControllerTransition/SGControllerTransition.h>.

License

SGControllerTransition is provided under the MIT license. See LICENSE file for details.

Latest podspec

{
    "name": "SGControllerTransition",
    "summary": "It is no longer difficult to animate the controller.",
    "version": "1.0.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "sylphghost": "[email protected]"
    },
    "homepage": "https://github.com/sylphghost/SGControllerTransition",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/sylphghost/SGControllerTransition.git",
        "tag": "1.0.0"
    },
    "requires_arc": true,
    "source_files": "SGControllerTransition/**/*.{h,m}"
}

Pin It on Pinterest

Share This