mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-07 05:25:12 +00:00
34 lines
1.0 KiB
Objective-C
34 lines
1.0 KiB
Objective-C
//
|
|
// ASListTestSupplementarySource.m
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Adlai Holler on 12/25/16.
|
|
// Copyright © 2016 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import "ASListTestSupplementarySource.h"
|
|
#import "ASListTestSupplementaryNode.h"
|
|
|
|
@implementation ASListTestSupplementarySource
|
|
|
|
- (__kindof UICollectionReusableView *)viewForSupplementaryElementOfKind:(NSString *)elementKind atIndex:(NSInteger)index
|
|
{
|
|
return [ASIGListSupplementaryViewSourceMethods viewForSupplementaryElementOfKind:elementKind atIndex:index sectionController:self.sectionController];
|
|
}
|
|
|
|
- (CGSize)sizeForSupplementaryViewOfKind:(NSString *)elementKind atIndex:(NSInteger)index
|
|
{
|
|
return [ASIGListSupplementaryViewSourceMethods sizeForSupplementaryViewOfKind:elementKind atIndex:index];
|
|
}
|
|
|
|
- (ASCellNodeBlock)nodeBlockForSupplementaryElementOfKind:(NSString *)elementKind atIndex:(NSInteger)index
|
|
{
|
|
return ^{
|
|
ASListTestSupplementaryNode *node = [[ASListTestSupplementaryNode alloc] init];
|
|
node.style.preferredSize = CGSizeMake(100, 10);
|
|
return node;
|
|
};
|
|
}
|
|
|
|
@end
|