mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-21 22:55:25 +00:00
Introduce ASLayoutable and eliminate ASCompositeNode:
- Both ASDisplayNode and ASLayoutNode conforms to this protocol. - ASDisplayNode can be embeded directly into layout graph. - Eliminate ASCompositeNode. - Fix ASStaticSizeDisplayNode not recpect min constrained size. - Updated tests.
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
//
|
||||
|
||||
#import "ASSnapshotTestCase.h"
|
||||
#import "ASCompositeNode.h"
|
||||
|
||||
@class ASLayoutNode;
|
||||
|
||||
@interface ASLayoutNodeSnapshotTestCase: ASSnapshotTestCase
|
||||
/**
|
||||
@@ -18,7 +19,7 @@
|
||||
@param identifier An optional identifier, used to identify this snapshot test.
|
||||
|
||||
@discussion In order to make the layout node visible, it is embeded to a ASDisplayNode host.
|
||||
Any display nodes used within the layout (via ASCompositeNode) must be provided.
|
||||
Any display nodes used within the layout must be provided.
|
||||
They will be added to the host in the same order as the subnodes array.
|
||||
*/
|
||||
- (void)testLayoutNode:(ASLayoutNode *)layoutNode
|
||||
|
||||
Reference in New Issue
Block a user