Explorar o código

Use runUnsafely

onevcat hai 1 ano
pai
achega
daeb3d06e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/Views/AnimatedImageView.swift

+ 1 - 1
Sources/Views/AnimatedImageView.swift

@@ -249,7 +249,7 @@ open class AnimatedImageView: KFCrossPlatformImageView {
     deinit {
         if isDisplayLinkInitialized {
             // We have to assume this UIView deinit is called on main thread.
-            MainActor.assumeIsolated { displayLink.invalidate() }
+            MainActor.runUnsafely { displayLink.invalidate() }
         }
     }