Bläddra i källkod

Use runUnsafely

onevcat 1 år sedan
förälder
incheckning
daeb3d06e7
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Sources/Views/AnimatedImageView.swift

+ 1 - 1
Sources/Views/AnimatedImageView.swift

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