mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +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
@@ -29,17 +29,6 @@
|
||||
#import YOGA_HEADER_PATH
|
||||
#endif
|
||||
|
||||
extern void ASLayoutElementPerformBlockOnEveryElement(id<ASLayoutElement> element, void(^block)(id<ASLayoutElement> element))
|
||||
{
|
||||
if (element) {
|
||||
block(element);
|
||||
}
|
||||
|
||||
for (id<ASLayoutElement> subelement in element.sublayoutElements) {
|
||||
ASLayoutElementPerformBlockOnEveryElement(subelement, block);
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - ASLayoutElementContext
|
||||
|
||||
CGFloat const ASLayoutElementParentDimensionUndefined = NAN;
|
||||
|
||||
Reference in New Issue
Block a user