| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // FDPhotoGroupView.h
- // FDFoundationObjC
- //
- // Created by fandongtongxue on 2020/2/27.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- /// Single picture's info.
- @interface FDPhotoGroupItem : NSObject
- @property (nonatomic, strong) UIView *thumbView; ///< thumb image, used for animation position calculation
- @property (nonatomic, assign) CGSize largeImageSize;
- @property (nonatomic, strong) NSURL *largeImageURL;
- @end
- /// Used to show a group of images.
- /// One-shot.
- @interface FDPhotoGroupView : UIView
- @property (nonatomic, readonly) NSArray *groupItems; ///< Array<YYPhotoGroupItem>
- @property (nonatomic, readonly) NSInteger currentPage;
- @property (nonatomic, assign) BOOL blurEffectBackground; ///< Default is YES
- - (instancetype)init UNAVAILABLE_ATTRIBUTE;
- - (instancetype)initWithFrame:(CGRect)frame UNAVAILABLE_ATTRIBUTE;
- + (instancetype)new UNAVAILABLE_ATTRIBUTE;
- - (instancetype)initWithGroupItems:(NSArray *)groupItems;
- - (void)presentFromImageView:(UIView *)fromView
- toContainer:(UIView *)container
- animated:(BOOL)animated
- completion:(void (^)(void))completion;
- - (void)dismissAnimated:(BOOL)animated completion:(void (^)(void))completion;
- - (void)dismiss;
- @end
- NS_ASSUME_NONNULL_END
|