longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.76k stars 966 forks source link

allowMixSelect设置为false后,多选视频无效 #686

Closed Blackvision2021 closed 2 years ago

Blackvision2021 commented 2 years ago

Issue Description

Description and Steps

在设置allowMixSelect = false后,无论maxVideoSelectCount设置多大,都只能单选一个视频

Info

ZLPhotoBrowser version: 4.2.2 Device: iPhone XR Device version: iOS 14.8 Xcode version: e.g. Xcode 13.1

Configuration code of ZLPhotoConfiguration

   let config = ZLPhotoConfiguration.default()
        config.allowMixSelect = false
        config.maxVideoSelectCount = 9
        config.minVideoSelectCount = 1
        config.allowSelectGif = false
        config.allowSelectImage = false
        config.allowSelectLivePhoto = false
        config.allowSelectOriginal = false
longitachi commented 2 years ago
/// Whether photos and videos can be selected together. Default is true.
/// If set to false, only one video can be selected. Defaults to true.
@objc public var allowMixSelect = true

是这么个逻辑,当时主要是参照微信朋友圈的一个功能,视频只能单选。

你既然设置了allowSelectImage = false,就没必要设置allowMixSelect = false

Blackvision2021 commented 2 years ago
/// Whether photos and videos can be selected together. Default is true.
/// If set to false, only one video can be selected. Defaults to true.
@objc public var allowMixSelect = true

是这么个逻辑,当时主要是参照微信朋友圈的一个功能,视频只能单选。

你既然设置了allowSelectImage = false,就没必要设置allowMixSelect = false

感谢回复,看ZLPhotoConfiguration测试功能的时候没注意看上面的描述。