Files
Swiftgram/ASDKListKit/ASDKListKitTests/ASListTestSupplementarySource.m
Adlai Holler 7763356b8a Replace IGListKit Method Macros with Actual Methods (#3094)
* Replace IGListKit macros with methods

* Remove docs in impl

* Update example
2017-02-27 11:08:39 -08:00

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