// // FDPhotoGroupView.h // FDFoundationObjC // // Created by fandongtongxue on 2020/2/27. // #import 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 @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