Skip to content

Commit 9cf058e

Browse files
committed
Should use the SDWebImage's static image decode API instead of UIKit's one
1 parent 932b33b commit 9cf058e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImageSwiftUI/Classes/AnimatedImage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
307307
var image: PlatformImage? = SDAnimatedImage(data: data, scale: imageModel.scale)
308308
if image == nil {
309309
// For static image, use UIImage as defaults
310-
image = PlatformImage(data: data)
310+
image = PlatformImage.sd_image(with: data, scale: imageModel.scale)
311311
}
312312
context.coordinator.imageLoading.imageData = data
313313
view.wrapped.image = image

0 commit comments

Comments
 (0)