forked from ColinEberhardt/VCTransitionsLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCEReversibleAnimationController.h
More file actions
28 lines (22 loc) · 1.01 KB
/
CEReversibleAnimationController.h
File metadata and controls
28 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// CEBaseAnimationController.h
// ViewControllerTransitions
//
// Created by Colin Eberhardt on 09/09/2013.
// Copyright (c) 2013 Colin Eberhardt. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
A base class for animation controllers which provide reversible animations. A reversible animation is often used with navigation controllers where the reverse property is set based on whether this is a push or pop operation, or for modal view controllers where the reverse property is set based o whether this is a show / dismiss.
*/
@interface CEReversibleAnimationController : NSObject <UIViewControllerAnimatedTransitioning>
/**
The direction of the animation.
*/
@property (nonatomic, assign) BOOL reverse;
/**
The animation duration.
*/
@property (nonatomic, assign) NSTimeInterval duration;
- (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext fromVC:(UIViewController *)fromVC toVC:(UIViewController *)toVC fromView:(UIView *)fromView toView:(UIView *)toView;
@end