Skip to content

Commit ee17bb0

Browse files
committed
Supports the UIAnimatedImage to be resizable in AnimatedImage struct. Only filter the SDAnimatedImage cases
1 parent ba1b364 commit ee17bb0

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
@@ -350,7 +350,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
350350
}
351351

352352
// Animated Image does not support resizing mode and rendering mode
353-
if let image = view.wrapped.image, !image.sd_isAnimated, !image.conforms(to: SDAnimatedImageProtocol.self) {
353+
if let image = view.wrapped.image, !image.conforms(to: SDAnimatedImageProtocol.self) {
354354
var image = image
355355
// ResizingMode
356356
if let resizingMode = imageLayout.resizingMode, imageLayout.capInsets != EdgeInsets() {

0 commit comments

Comments
 (0)