ImagePickerCollectionCell

@MainActor
open class ImagePickerCollectionCell : UICollectionViewCell

图片选择空间里的九宫格 cell,支持显示 checkbox、饼状进度条及重试按钮(iCloud 图片需要)

  • checkbox 未被选中时显示的图片

    Declaration

    Swift

    @MainActor
    open var checkboxImage: UIImage? { get set }
  • checkbox 被选中时显示的图片

    Declaration

    Swift

    @MainActor
    open var checkboxCheckedImage: UIImage? { get set }
  • checkbox 的 margin,定位从每个 cell(即每张图片)的最右边开始计算

    Declaration

    Swift

    @MainActor
    open var checkboxButtonMargins: UIEdgeInsets { get set }
  • 禁用时蒙层颜色

    Declaration

    Swift

    @MainActor
    open var disabledMaskColor: UIColor? { get set }
  • 选中时蒙层颜色

    Declaration

    Swift

    @MainActor
    open var checkedMaskColor: UIColor? { get set }
  • videoDurationLabel 的字号

    Declaration

    Swift

    @MainActor
    open var videoDurationLabelFont: UIFont? { get set }
  • videoDurationLabel 的字体颜色

    Declaration

    Swift

    @MainActor
    open var videoDurationLabelTextColor: UIColor? { get set }
  • 视频时长文字的间距,相对于 cell 右下角而言,也即如果 right 越大则越往左,bottom 越大则越往上,另外 top 会影响底部遮罩的高度

    Declaration

    Swift

    @MainActor
    open var videoDurationLabelMargins: UIEdgeInsets { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var editedIconImage: UIImage? { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var videoIconImage: UIImage? { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var iconImageViewMargins: UIEdgeInsets { get set }
  • checkedIndexLabel 的字号

    Declaration

    Swift

    @MainActor
    open var checkedIndexLabelFont: UIFont? { get set }
  • checkedIndexLabel 的字体颜色

    Declaration

    Swift

    @MainActor
    open var checkedIndexLabelTextColor: UIColor? { get set }
  • checkedIndexLabel 的尺寸

    Declaration

    Swift

    @MainActor
    open var checkedIndexLabelSize: CGSize { get set }
  • checkedIndexLabel 的 margin,定位从每个 cell(即每张图片)的最右边开始计算

    Declaration

    Swift

    @MainActor
    open var checkedIndexLabelMargins: UIEdgeInsets { get set }
  • checkedIndexLabel 的背景色

    Declaration

    Swift

    @MainActor
    open var checkedIndexLabelBackgroundColor: UIColor? { get set }
  • 是否显示checkedIndexLabel,大小和checkboxButton保持一致

    Declaration

    Swift

    @MainActor
    open var showsCheckedIndexLabel: Bool { get set }
  • 是否显示videoDurationLabel,默认YES

    Declaration

    Swift

    @MainActor
    open var showsVideoDurationLabel: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var selectable: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var checked: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var disabled: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var checkedIndex: Int? { get set }
  • Cell 中对应资源的下载状态,这个值的变动会相应地调整 UI 表现

    Declaration

    Swift

    @MainActor
    open var downloadStatus: AssetDownloadStatus { get set }
  • 当前这个 cell 正在展示的 Asset 的 identifier

    Declaration

    Swift

    @MainActor
    open var assetIdentifier: String?
  • 蒙层视图

    Declaration

    Swift

    @MainActor
    open lazy var coverView: UIView { get set }
  • 左下角图标视图,默认判断显示editedIconImage和videoIconImage

    Declaration

    Swift

    @MainActor
    open lazy var iconImageView: UIImageView { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open lazy var contentImageView: UIImageView { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open lazy var checkboxButton: UIButton { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open lazy var videoDurationLabel: UILabel { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    open lazy var checkedIndexLabel: UILabel { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    @MainActor
    open override func layoutSubviews()
  • 渲染资源

    Declaration

    Swift

    @MainActor
    open func render(asset: Asset, referenceSize: CGSize)