We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608b861 commit 8979158Copy full SHA for 8979158
SDWebImageSwiftUI/Classes/AnimatedImage.swift
@@ -199,7 +199,11 @@ public struct AnimatedImage : PlatformViewRepresentable {
199
// This is a hack because of Xcode 11.3 bug, the @Published does not trigger another `updateUIView` call
200
// Here I have to use UIKit API to triger the same effect (the window change implicitly cause re-render)
201
if let hostingView = AnimatedImage.findHostingView(from: view) {
202
+ #if os(macOS)
203
+ hostingView.viewDidMoveToWindow()
204
+ #else
205
hostingView.didMoveToWindow()
206
+ #endif
207
}
208
if let image = image {
209
self.imageHandler.successBlock?(image, cacheType)
0 commit comments