added iOS source code
[wl-app.git] / iOS / Pods / ZFDragableModalTransition / Classes / ZFModalTransitionAnimator.h
diff --git a/iOS/Pods/ZFDragableModalTransition/Classes/ZFModalTransitionAnimator.h b/iOS/Pods/ZFDragableModalTransition/Classes/ZFModalTransitionAnimator.h
new file mode 100644 (file)
index 0000000..f724e90
--- /dev/null
@@ -0,0 +1,36 @@
+//
+//  ZFModalTransitionAnimator.h
+//
+//  Created by Amornchai Kanokpullwad on 5/10/14.
+//  Copyright (c) 2014 zoonref. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+#import <UIKit/UIGestureRecognizerSubclass.h>
+
+typedef NS_ENUM(NSUInteger, ZFModalTransitonDirection) {
+    ZFModalTransitonDirectionBottom,
+    ZFModalTransitonDirectionLeft,
+    ZFModalTransitonDirectionRight,
+};
+
+@interface ZFDetectScrollViewEndGestureRecognizer : UIPanGestureRecognizer
+@property (nonatomic, weak) UIScrollView *scrollview;
+@end
+
+@interface ZFModalTransitionAnimator : UIPercentDrivenInteractiveTransition <UIViewControllerAnimatedTransitioning, UIViewControllerTransitioningDelegate, UIGestureRecognizerDelegate>
+
+@property (nonatomic, assign, getter=isDragable) BOOL dragable;
+@property (nonatomic, readonly) ZFDetectScrollViewEndGestureRecognizer *gesture;
+@property (nonatomic, assign) UIGestureRecognizer *gestureRecognizerToFailPan;
+@property BOOL bounces;
+@property (nonatomic) ZFModalTransitonDirection direction;
+@property CGFloat behindViewScale;
+@property CGFloat behindViewAlpha;
+@property CGFloat transitionDuration;
+
+- (id)initWithModalViewController:(UIViewController *)modalViewController;
+- (void)setContentScrollView:(UIScrollView *)scrollView;
+
+@end