DHAnimation is a framework based on OpenGL ES that implements many intersting animations for UIView.
There are four types of animations:
- Transitions: Transitions are used for presenting view controller with custom animations. It shows the presented view controller form the presenting view controller with specific animations;
- Built In Animations: Built In Animations are used for UIView appearance.
- Built Out Animaitons: Built Out Animations are used for UIView disappearance.
- Text Animations: Animations that are designed specifically for text.
How to use this framework:
- Clone the repository;
- Open "DHAnimation.xcodeproj";
- Choose "DHAnimationFramework" scheme and build;
- Choose "DHAnimationBundle" scheme and build;
- Drag the generated "DHAnimationFramework.framework" and "DHAnimationFramework.bundle" to your own project;
How to use transition renderers:
- import "DHConstants", "DHTransitionSettings";\n
- Find the animation type, and call [DHConstants transitionRendererForName:transitionName];
- Create transition settings by calling [DHTransitionSettings defaultSettingsForTransitionType:transitionType];
- Configure the settings;
- Call perform animation on renderer: [renderer performAnimationWithSettings:settings];
How to use animation renderers:
- import "DHConstants", "DHObjectAnimationSettings";
- Find the animation type, and call [DHConstants animationRendererForName:animationName];
- Create animation settings by calling [DHObjectAnimationSettings defaultSettingsForAnimationType:animationType event:event forView:view];
- Configure the settings;
- Prepare for animation: [renderer prepareAnimationWithSettings:settings];
- Start animation: [renderer startAnimation];
How to use text animation renderers:
- import "DHConstants", "DHTextAnimationSettings";
- Find the animation type, and call [DHConstants textRendererForType:animationType];
- Create animation settings by calling [DHTextAnimationSettings defaultSettingForAnimationType:animationType];
- Configure the settings;
- Prepare for animation: [renderer prepareAnimationWithSettings:settings];
- Start animation: [renderer startAnimation];