mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Add a block API to provide an ASLayoutSpec without having to subclass ASDisplayNode
This commit is contained in:
@@ -143,6 +143,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* encouraged.
|
||||
*
|
||||
* @note This method should not be called directly outside of ASDisplayNode; use -measure: or -calculatedLayout instead.
|
||||
*
|
||||
* @warning Overwriting layoutSpecThatFits: in a subclass and providing a layoutSpecBlock block is currently not supported
|
||||
*/
|
||||
- (ASLayoutSpec *)layoutSpecThatFits:(ASSizeRange)constrainedSize;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user