XG_AssetModel.h 770 B

123456789101112131415161718192021222324
  1. //
  2. // XG_AssetModel.h
  3. // MyApp
  4. //
  5. // Created by huxinguang on 2018/9/26.
  6. // Copyright © 2018年 huxinguang. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import <Photos/Photos.h>
  11. @interface XG_AssetModel : NSObject
  12. @property (nonatomic, strong) PHAsset *asset; // PHAsset
  13. @property (nonatomic, getter=isPicked) BOOL picked; // 选中状态 默认NO
  14. @property (nonatomic, assign) int number; // 数字
  15. @property (nonatomic, assign) BOOL isPlaceholder; // 是否为占位
  16. @property (nonatomic, assign) BOOL selectable; // 是否可以被选中
  17. @property (nonatomic, strong) NSString *url;
  18. + (instancetype)modelWithAsset:(PHAsset *)asset videoPickable:(BOOL)videoPickable;
  19. @end