杨锴
2025-03-11 90dc3329d1973fda691e357cf4523d5c7c67fa1d
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;