mod: change description of animated player

This commit is contained in:
Insomnia 2020-11-03 09:40:08 +08:00
parent 8c108d604f
commit 05c6e5d70e
2 changed files with 5 additions and 2 deletions

View File

@ -21,9 +21,11 @@
*/ */
@interface SDAnimatedImageView : UIImageView @interface SDAnimatedImageView : UIImageView
/** /**
The animation player. The internal animation player.
This property is only used for advanced usage, like inspecting/debugging animation status, control progressive loading, complicated animation frame index control, etc.
@warning Pay attention if you directly update the player's property like `totalFrameCount`, `totalLoopCount`, the same property on `SDAnimatedImageView` may not get synced.
*/ */
@property (nonatomic, strong, nonnull) SDAnimatedImagePlayer *player; @property (nonatomic, strong, readonly, nullable) SDAnimatedImagePlayer *player;
/** /**
Current display frame image. This value is KVO Compliance. Current display frame image. This value is KVO Compliance.

View File

@ -26,6 +26,7 @@
SDAnimatedImagePlaybackMode _playbackMode; SDAnimatedImagePlaybackMode _playbackMode;
} }
@property (nonatomic, strong, readwrite) SDAnimatedImagePlayer *player;
@property (nonatomic, strong, readwrite) UIImage *currentFrame; @property (nonatomic, strong, readwrite) UIImage *currentFrame;
@property (nonatomic, assign, readwrite) NSUInteger currentFrameIndex; @property (nonatomic, assign, readwrite) NSUInteger currentFrameIndex;
@property (nonatomic, assign, readwrite) NSUInteger currentLoopCount; @property (nonatomic, assign, readwrite) NSUInteger currentLoopCount;