We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
选择相册里的gif图作为水印图片,EFImage为normal成了普通照片
在从相册里选择照片的didFinishPickingMediaWithInfo回调方法里, if let imageUrl = info[.referenceURL] as? URL, let asset = PHAsset.fetchAssets(withALAssetURLs: [imageUrl], options: nil).lastObject { images = selectedAlbumPhotosIncludingGifWithPHAssets(assets: [asset]) } asset为nil,images的count为0,导致不走底下的方法 if let tryGIF = images.first(where: { $0.value?.isGIF == true }) { watermark = tryGIF.value! }
xcode14.1 ios16.1.1 Swift5 EFQRCode6.2.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
检查清单
问题描述
选择相册里的gif图作为水印图片,EFImage为normal成了普通照片
展开讲讲
在从相册里选择照片的didFinishPickingMediaWithInfo回调方法里,
if let imageUrl = info[.referenceURL] as? URL,
let asset = PHAsset.fetchAssets(withALAssetURLs: [imageUrl], options: nil).lastObject {
images = selectedAlbumPhotosIncludingGifWithPHAssets(assets: [asset])
}
asset为nil,images的count为0,导致不走底下的方法
if let tryGIF = images.first(where: { $0.value?.isGIF == true }) {
watermark = tryGIF.value!
}
重现步骤
xcode14.1
ios16.1.1
Swift5
EFQRCode6.2.1
其他信息
The text was updated successfully, but these errors were encountered: