Skip to content

Commit e72fedd

Browse files
authored
Merge pull request onevcat#2300 from mlight3/mlight3/mainactor
fix: add @mainactor attribute to animation closure of custom transition
2 parents 33696a7 + 9c9fc59 commit e72fedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Image/ImageTransition.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public enum ImageTransition: Sendable {
5656
/// - completion: A block called when the transition animation finishes.
5757
case custom(duration: TimeInterval,
5858
options: UIView.AnimationOptions,
59-
animations: (@Sendable (UIImageView, UIImage) -> Void)?,
59+
animations: (@Sendable @MainActor (UIImageView, UIImage) -> Void)?,
6060
completion: (@Sendable (Bool) -> Void)?)
6161

6262
var duration: TimeInterval {

0 commit comments

Comments
 (0)