Swiftgram/Source/IGListAdapter+AsyncDisplayKit.h
Garrett Moon 8c3775f5e2 Need to check availability before use of macros. (#3254)
* Need to check availability before use of macros.

* Get rid of PCH and enforce macro definition.

* Remove prefix

* Switch to global warning instead, much better.
2017-04-10 15:06:40 -07:00

37 lines
841 B
Objective-C

//
// IGListAdapter+AsyncDisplayKit.h
// AsyncDisplayKit
//
// Created by Adlai Holler on 1/19/17.
// Copyright © 2017 Facebook. All rights reserved.
//
#import <AsyncDisplayKit/ASAvailability.h>
#if AS_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 // AS_IG_LIST_KIT