Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

可以只显示gif吗? #32

Closed
cosmoyoung opened this issue Feb 9, 2022 · 4 comments
Closed

可以只显示gif吗? #32

cosmoyoung opened this issue Feb 9, 2022 · 4 comments

Comments

@cosmoyoung
Copy link

设置config.selectOptions = [.gifPhoto],还是会显示静态图片。
设置config.selectOptions = [.video],只显示video。

@SilenceLove
Copy link
Owner

.gifPhoto里面包含的静态图片。目前还不支持再次过滤,后续会考虑加上

@cosmoyoung
Copy link
Author

哈哈可以,不过gifPhoto包括静态图和gif有点奇怪。
既然定义为数组,不应该是[.gifPhoto, .photo]才表示静态图和gif吗。

@SilenceLove
Copy link
Owner

gifPhoto包含了.photo其实就是加上一个gif标示和播放gif,只显示静态图片的时候gif也会显示出来,只是不播放了。

SilenceLove added a commit that referenced this issue Feb 19, 2022
@SilenceLove
Copy link
Owner

    /// 获取所有相册时调用
    /// - Parameter
    ///   - pickerController: 对应的 PhotoPickerController
    ///   - collection: 对应的每个 PHAssetCollection 对象
    /// - Returns: 是否添加到列表显示
    func pickerController(
        _ pickerController: PhotoPickerController,
        didFetchAssetCollections collection: PHAssetCollection
    ) -> Bool
    
    /// 获取相册集合里的 PHAsset 时调用
    /// - Parameter
    ///   - pickerController: 对应的 PhotoPickerController
    ///   - asset: 对应的每个 PHAsset 对象
    /// - Returns: 是否添加到列表显示
    func pickerController(
        _ pickerController: PhotoPickerController,
        didFetchAssets asset: PHAsset
    ) -> Bool

代理已加过滤相册/照片的回调

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants