-
Notifications
You must be signed in to change notification settings - Fork 642
/
Copy pathIDMZoomingScrollView.h
47 lines (36 loc) · 1.5 KB
/
IDMZoomingScrollView.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// IDMZoomingScrollView.h
// IDMPhotoBrowser
//
// Created by Michael Waterfall on 14/10/2010.
// Copyright 2010 d3i. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVKit/AVKit.h>
#import <AVFoundation/AVFoundation.h>
#import "IDMPhotoProtocol.h"
#import "IDMTapDetectingImageView.h"
#import "IDMTapDetectingView.h"
#import <DACircularProgress/DACircularProgressView.h>
@class IDMPhotoBrowser, IDMPhoto, IDMCaptionView;
@interface IDMZoomingScrollView : UIScrollView <UIScrollViewDelegate, IDMTapDetectingImageViewDelegate, IDMTapDetectingViewDelegate, UIDragInteractionDelegate> {
IDMPhotoBrowser *__weak _photoBrowser;
id<IDMPhoto> _photo;
// This view references the related caption view for simplified handling in photo browser
IDMCaptionView *_captionView;
IDMTapDetectingView *_tapView; // for background taps
DACircularProgressView *_progressView;
}
@property (nonatomic, strong) IDMTapDetectingImageView *photoImageView;
@property (nonatomic, strong) IDMTapDetectingView *videoPlayerView;
@property (nonatomic, strong) AVPlayerLayer *videoPlayerLayer;
@property (nonatomic, strong) IDMCaptionView *captionView;
@property (nonatomic, strong) id<IDMPhoto> photo;
@property (nonatomic) CGFloat maximumDoubleTapZoomScale;
- (id)initWithPhotoBrowser:(IDMPhotoBrowser *)browser;
- (void)displayImage;
- (void)displayImageFailure;
- (void)setProgress:(CGFloat)progress forPhoto:(IDMPhoto*)photo;
- (void)setMaxMinZoomScalesForCurrentBounds;
- (void)prepareForReuse;
@end