-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathBFRImageContainerViewController.h
47 lines (35 loc) · 2.28 KB
/
BFRImageContainerViewController.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
//
// BFRImageContainerViewController.h
// Buffer
//
// Created by Jordan Morgan on 11/10/15.
//
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, BFRImageAssetType) {
BFRImageAssetTypeImage,
BFRImageAssetTypeRemoteImage,
BFRImageAssetTypeGIF,
BFRImageAssetTypeLivePhoto,
BFRImageAssetTypeUnknown
};
/*! This class holds an image to view, if you need an image viewer alloc @C BFRImageViewController instead. This class isn't meant to instanitated outside of it. */
@interface BFRImageContainerViewController : UIViewController
/*! Source of the image, which should either be @c NSURL or @c UIIimage. */
@property (strong, nonatomic, nonnull) id imgSrc;
/*! The type of asset that is being represented by the given @p imgSrc. */
@property (nonatomic, assign) BFRImageAssetType assetType;
/*! This will determine whether to change certain behaviors for 3D touch considerations based on its value. */
@property (nonatomic, getter=isBeingUsedFor3DTouch) BOOL usedFor3DTouch;
/*! A helper integer to simplify using this view controller inside a @c UIPagerViewController when swiping between views. */
@property (nonatomic, assign) NSUInteger pageIndex;
/*! Assigning YES to this property will make the background transparent. You typically don't set this property yourself, instead, the value is derived from the containing @c BFRImageViewController instance. */
@property (nonatomic, getter=isUsingTransparentBackground) BOOL useTransparentBackground;
/*! Assigning YES to this property will disable long pressing media to present the activity view controller. You typically don't set this property yourself, instead, the value is derived from the containing @c BFRImageViewController instance. */
@property (nonatomic, getter=shouldDisableSharingLongPress) BOOL disableSharingLongPress;
/*! If there is more than one image in the containing @c BFRImageViewController - this property is set to YES to make swiping from image to image easier. */
@property (nonatomic, getter=shouldDisableHorizontalDrag) BOOL disableHorizontalDrag;
/*! Assigning YES to this property will disable autoplay for live photos when it used with 3DTouch peek feature */
@property (nonatomic, getter=shouldDisableAutoplayForLivePhoto) BOOL disableAutoplayForLivePhoto;
@property (nonatomic, assign) CGFloat imageMaxScale;
@end