Files
Texture/ASDKListKit/ASDKListKitTests/ASListTestSupplementarySource.m
Adlai Holler 38aac9d019 IGListKit Support II: Electric Boogaloo (#2942)
* Reimplement IGListKit support in a cleaner way

* Rename and fix some stuff

* Fix supplementaries more

* Update docs

* Update test

* Cleanup minor things

* Tweak it

* Indentation

* Remove irrelevant changes

* Break out cell into its own file

* Fix indentation

* Address feedback
2017-01-30 11:16:59 -08:00

25 lines
701 B
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
ASIGSupplementarySourceViewForSupplementaryElementImplementation(self.sectionController)
ASIGSupplementarySourceSizeForSupplementaryElementImplementation
- (ASCellNode *)nodeForSupplementaryElementOfKind:(NSString *)elementKind atIndex:(NSInteger)index
{
ASListTestSupplementaryNode *node = [[ASListTestSupplementaryNode alloc] init];
node.style.preferredSize = CGSizeMake(100, 10);
return node;
}
@end