From 9c9fc592765827ff4dc4b3ada11954c78cef360e Mon Sep 17 00:00:00 2001 From: paul-han Date: Wed, 9 Oct 2024 22:20:43 +0900 Subject: [PATCH] fix: add @MainActor attribute to animation closure of custom transition --- Sources/Image/ImageTransition.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Image/ImageTransition.swift b/Sources/Image/ImageTransition.swift index 91c660bd3..60f1c254a 100644 --- a/Sources/Image/ImageTransition.swift +++ b/Sources/Image/ImageTransition.swift @@ -56,7 +56,7 @@ public enum ImageTransition: Sendable { /// - completion: A block called when the transition animation finishes. case custom(duration: TimeInterval, options: UIView.AnimationOptions, - animations: (@Sendable (UIImageView, UIImage) -> Void)?, + animations: (@Sendable @MainActor (UIImageView, UIImage) -> Void)?, completion: (@Sendable (Bool) -> Void)?) var duration: TimeInterval {