mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Add assertion against externally setting .image in specific ASImageNode subclasses
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#import "ASEqualityHelpers.h"
|
||||
#import "ASInternalHelpers.h"
|
||||
#import "ASDisplayNodeExtras.h"
|
||||
#import "ASImageNode+Private.h"
|
||||
|
||||
static BOOL ASAssetIsEqual(AVAsset *asset1, AVAsset *asset2) {
|
||||
return ASObjectIsEqual(asset1, asset2)
|
||||
@@ -300,7 +301,7 @@ static NSString * const kRate = @"rate";
|
||||
if (image != nil) {
|
||||
self.contentMode = ASContentModeFromVideoGravity(_gravity);
|
||||
}
|
||||
self.image = image;
|
||||
[self __setImage:image];
|
||||
}
|
||||
|
||||
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
|
||||
|
||||
Reference in New Issue
Block a user