Should use the SDWebImage's static image decode API instead of UIKit's one

This commit is contained in:
DreamPiggy 2023-10-21 16:51:21 +08:00
parent 932b33b6bd
commit 9cf058ebe1
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
var image: PlatformImage? = SDAnimatedImage(data: data, scale: imageModel.scale)
if image == nil {
// For static image, use UIImage as defaults
image = PlatformImage(data: data)
image = PlatformImage.sd_image(with: data, scale: imageModel.scale)
}
context.coordinator.imageLoading.imageData = data
view.wrapped.image = image