Explorar el Código

Use runUnsafely

onevcat hace 1 año
padre
commit
daeb3d06e7
Se han modificado 1 ficheros con 1 adiciones y 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() }
         }
     }