Swiftgram/AsyncDisplayKit/IGListAdapter+AsyncDisplayKit.h
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

35 lines
791 B
Objective-C

//
// IGListAdapter+AsyncDisplayKit.h
// AsyncDisplayKit
//
// Created by Adlai Holler on 1/19/17.
// Copyright © 2017 Facebook. All rights reserved.
//
#if IG_LIST_KIT
#import <IGListKit/IGListKit.h>
NS_ASSUME_NONNULL_BEGIN
@class ASCollectionNode;
@interface IGListAdapter (AsyncDisplayKit)
/**
* Connect this list adapter to the given collection node.
*
* @param collectionNode The collection node to drive with this list adapter.
*
* @note This method may only be called once per list adapter,
* and it must be called on the main thread. -[UIViewController init]
* is a good place to call it. This method does not retain the collection node.
*/
- (void)setASDKCollectionNode:(ASCollectionNode *)collectionNode;
@end
NS_ASSUME_NONNULL_END
#endif // IG_LIST_KIT