//
//  ZLPhotoBrowerView.h
//  SharedParking
//
//  Created by gui_huan on 2018/5/14.
//  Copyright © 2018年 tangshuanghui. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZLPhotoManager.h"
#import "ZLPhotoActionSheet.h"
#import "ZLPhotoBrowerModel.h"


typedef void(^PhotoBrowerModelsBlock)(NSMutableArray<ZLPhotoBrowerModel *> *photoBrowerModels);


IB_DESIGNABLE
@interface ZLPhotoBrowerView : UIView
///最多可选数
@property (nonatomic, assign)IBInspectable NSInteger maxSelectCount;
///默认图片
@property (nonatomic, assign)IBInspectable BOOL imageOrVideo;
///每行排列数
@property (nonatomic, assign)IBInspectable NSInteger lineCount;


@property (nonatomic, copy)PhotoBrowerModelsBlock selectedData;

@property (nonatomic, strong) NSMutableArray<ZLPhotoBrowerModel *> *dataArray;

@property (nonatomic, strong) NSMutableArray<ZLPhotoBrowerModel *> *photoModels;

@property (nonatomic, strong)UICollectionView *collectionView;

- (ZLPhotoActionSheet*)getPas;

- (void)actionSheetAndClickSelPhotoLibrary:(BOOL)photoLibrary;

@end
