X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/53b27422d140022594fc241cca91c3183be57bca..48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff:/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 index 0000000..f724e90 --- /dev/null +++ b/iOS/Pods/ZFDragableModalTransition/Classes/ZFModalTransitionAnimator.h @@ -0,0 +1,36 @@ +// +// ZFModalTransitionAnimator.h +// +// Created by Amornchai Kanokpullwad on 5/10/14. +// Copyright (c) 2014 zoonref. All rights reserved. +// + +#import +#import +#import + +typedef NS_ENUM(NSUInteger, ZFModalTransitonDirection) { + ZFModalTransitonDirectionBottom, + ZFModalTransitonDirectionLeft, + ZFModalTransitonDirectionRight, +}; + +@interface ZFDetectScrollViewEndGestureRecognizer : UIPanGestureRecognizer +@property (nonatomic, weak) UIScrollView *scrollview; +@end + +@interface ZFModalTransitionAnimator : UIPercentDrivenInteractiveTransition + +@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