Skip to content

Commit a4f6b5c

Browse files
committed
Should use the SDWebImage's static image decode API instead of UIKit's one
1 parent 8cf9a9d commit a4f6b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageSwiftUI/Classes/AnimatedImage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
322322
var image: PlatformImage? = SDAnimatedImage(data: data, scale: imageModel.scale)
323323
if image == nil {
324324
// For static image, use UIImage as defaults
325-
image = PlatformImage(data: data)
325+
image = PlatformImage.sd_image(with: data, scale: imageModel.scale)
326326
}
327327
context.coordinator.imageLoading.imageData = data
328328
view.wrapped.image = image

0 commit comments

Comments
 (0)