Supports the UIAnimatedImage to be resizable in AnimatedImage struct. Only filter the SDAnimatedImage cases
This commit is contained in:
parent
ba1b36406d
commit
ee17bb076c
|
@ -350,7 +350,7 @@ public struct AnimatedImage : PlatformViewRepresentable {
|
|||
}
|
||||
|
||||
// Animated Image does not support resizing mode and rendering mode
|
||||
if let image = view.wrapped.image, !image.sd_isAnimated, !image.conforms(to: SDAnimatedImageProtocol.self) {
|
||||
if let image = view.wrapped.image, !image.conforms(to: SDAnimatedImageProtocol.self) {
|
||||
var image = image
|
||||
// ResizingMode
|
||||
if let resizingMode = imageLayout.resizingMode, imageLayout.capInsets != EdgeInsets() {
|
||||
|
|
Loading…
Reference in New Issue