mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Don't behave like an image node if URL is set. (#2774)
After much discussion I think this is the correct behavior. It seems like it's much more likely to be the expected behavior but still enables you to use the network image node like an regular image node.
This commit is contained in:
@@ -52,11 +52,12 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* The image to display.
|
||||
*
|
||||
* @discussion By setting an image to the image property the ASNetworkImageNode will act like a plain ASImageNode.
|
||||
* As soon as the URL is set the ASNetworkImageNode will act like an ASNetworkImageNode and the image property
|
||||
* will be managed internally. This means the image property will be cleared out and replaced by the placeholder
|
||||
* (<defaultImage>) image while loading and the final image after the new image data was downloaded and processed.
|
||||
* If you want to use a placholder image functionality use the defaultImage property instead.
|
||||
* @discussion Setting an image to the image property of an ASNetworkImageNode will cause it to act like a plain
|
||||
* ASImageNode if a URL is not set as well. As soon as the URL is set the ASNetworkImageNode will act like an
|
||||
* ASNetworkImageNode and the image property will be managed internally. This means the image property will be cleared
|
||||
* out and replaced by the placeholder (<defaultImage>) image while loading and the final image after the new image
|
||||
* data was downloaded and processed. If you want to use a placholder image, use the defaultImage property
|
||||
* instead.
|
||||
*/
|
||||
@property (nullable, nonatomic, strong) UIImage *image;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user