mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Extract ASLayoutElement and ASLayoutElementStylability into categories #trivial (#131)
* Initial move of code into layout category * Cleanup * Some more
This commit is contained in:
committed by
GitHub
parent
c671d2c6c6
commit
b6734faa3b
@@ -42,16 +42,6 @@ typedef NS_ENUM(NSUInteger, ASLayoutElementType) {
|
||||
ASLayoutElementTypeDisplayNode
|
||||
};
|
||||
|
||||
ASDISPLAYNODE_EXTERN_C_BEGIN
|
||||
|
||||
/**
|
||||
This function will walk the layout element hierarchy. It does run the block on the node provided
|
||||
directly to the function call.
|
||||
*/
|
||||
extern void ASLayoutElementPerformBlockOnEveryElement(id<ASLayoutElement> root, void(^block)(id<ASLayoutElement> element));
|
||||
|
||||
ASDISPLAYNODE_EXTERN_C_END
|
||||
|
||||
#pragma mark - ASLayoutElement
|
||||
|
||||
/**
|
||||
@@ -70,7 +60,7 @@ ASDISPLAYNODE_EXTERN_C_END
|
||||
* access to the options via convenience properties. If you are creating custom layout spec, then you can
|
||||
* extend the backing layout options class to accommodate any new layout options.
|
||||
*/
|
||||
@protocol ASLayoutElement <ASLayoutElementExtensibility, ASLayoutElementFinalLayoutElement, ASTraitEnvironment>
|
||||
@protocol ASLayoutElement <ASLayoutElementExtensibility, ASTraitEnvironment>
|
||||
|
||||
#pragma mark - Getter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user