From 90dc3329d1973fda691e357cf4523d5c7c67fa1d Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期二, 11 三月 2025 12:23:53 +0800 Subject: [PATCH] fix bug --- Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.h b/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.h index 431be92..aa31506 100644 --- a/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.h +++ b/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.h @@ -12,6 +12,7 @@ #import "SDAnimatedImage.h" #import "SDAnimatedImagePlayer.h" +#import "SDImageTransformer.h" /** A drop-in replacement for UIImageView/NSImageView, you can use this for animated image rendering. @@ -29,6 +30,19 @@ @property (nonatomic, strong, readonly, nullable) SDAnimatedImagePlayer *player; /** + The transformer for each decoded animated image frame. + We supports post-transform on animated image frame from version 5.20. + When you configure the transformer on `SDAnimatedImageView` and animation is playing, the `transformedImageWithImage:forKey:` will be called just after the frame is decoded. (note: The `key` arg is always empty for backward-compatible and may be removed in the future) + + Example to tint the alpha animated image frame with a black color: + * @code + imageView.animationTransformer = [SDImageTintTransformer transformerWithColor:UIColor.blackColor]; + * @endcode + @note The `transformerKey` property is used to ensure the buffer cache available. So make sure it's correct value match the actual logic on transformer. Which means, for the `same frame index + same transformer key`, the transformed image should always be the same. + */ +@property (nonatomic, strong, nullable) id<SDImageTransformer> animationTransformer; + +/** Current display frame image. This value is KVO Compliance. */ @property (nonatomic, strong, readonly, nullable) UIImage *currentFrame; -- Gitblit v1.7.1