Skip to content

sylphghost/SGControllerTransition

Repository files navigation

SGControllerTransition

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.

About

It is no longer difficult to animate the controller.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors