Skip to content

Commit

Permalink
Merge pull request #2300 from mlight3/mlight3/mainactor
Browse files Browse the repository at this point in the history
fix: add @mainactor attribute to animation closure of custom transition
  • Loading branch information
onevcat authored Oct 9, 2024
2 parents 33696a7 + 9c9fc59 commit e72fedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Image/ImageTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e72fedd

Please sign in to comment.