Skip to content

Commit cbf4278

Browse files
committed
Don't need to setNeedsDisplay on SwiftUI representable, because SwfitUI will do this automatically
1 parent 4c456e1 commit cbf4278

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

SDWebImageSwiftUI/Classes/AnimatedImage.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,6 @@ public struct AnimatedImage : PlatformViewRepresentable {
360360

361361
// Antialiased
362362
view.shouldAntialias = imageLayout.antialiased
363-
364-
// Display
365-
#if os(macOS)
366-
view.needsLayout = true
367-
view.needsDisplay = true
368-
#else
369-
view.setNeedsLayout()
370-
view.setNeedsDisplay()
371-
#endif
372363
#endif
373364
}
374365

0 commit comments

Comments
 (0)