mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
improve layoutSpecThatFits: assertion message (#2201)
This commit is contained in:
committed by
Adlai Holler
parent
b233122604
commit
03c21830a5
@@ -2272,7 +2272,7 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
|
||||
return _layoutSpecBlock(self, constrainedSize);
|
||||
}
|
||||
|
||||
ASDisplayNodeAssert(NO, @"-[ASDisplayNode layoutSpecThatFits:] should never fall through to return empty value");
|
||||
ASDisplayNodeAssert(NO, @"-[ASDisplayNode layoutSpecThatFits:] should never return an empty value. One way this is caused is by calling -[super layoutSpecThatFits:] which is not currently supported.");
|
||||
return [[ASLayoutSpec alloc] init];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user