mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fixes an issue with GIFs that would always be covered by their placeholder (#326)
Also adds a subclass override for when the animated image is set.
This commit is contained in:
@@ -148,6 +148,9 @@ typedef UIImage * _Nullable (^asimagenode_modification_block_t)(UIImage *image);
|
||||
*
|
||||
* @discussion Set this to an object which conforms to ASAnimatedImageProtocol
|
||||
* to have the ASImageNode playback an animated image.
|
||||
* @warning this method should not be overridden, it may not always be called as
|
||||
* another method is used internally. If you need to know when the animatedImage
|
||||
* is set, override @c animatedImageSet:previousAnimatedImage:
|
||||
*/
|
||||
@property (nullable, nonatomic, strong) id <ASAnimatedImageProtocol> animatedImage;
|
||||
|
||||
@@ -168,6 +171,15 @@ typedef UIImage * _Nullable (^asimagenode_modification_block_t)(UIImage *image);
|
||||
*/
|
||||
@property (nonatomic, strong) NSString *animatedImageRunLoopMode;
|
||||
|
||||
/**
|
||||
* @abstract Method called when animated image has been set
|
||||
*
|
||||
* @discussion This method is for subclasses to override so they can know if an animated image
|
||||
* has been set on the node.
|
||||
* @warning this method is called with the node's lock held.
|
||||
*/
|
||||
- (void)animatedImageSet:(id <ASAnimatedImageProtocol>)newAnimatedImage previousAnimatedImage:(id <ASAnimatedImageProtocol>)previousAnimatedImage;
|
||||
|
||||
@end
|
||||
|
||||
@interface ASImageNode (Unavailable)
|
||||
|
||||
Reference in New Issue
Block a user