Swiftgram/AsyncDisplayKit/Private/ASCollectionInteropProtocols.h
Adlai Holler 404795dc02 Remove Support for iOS 7 (#2930)
* Drop support for iOS 7

* Copy reference images

* Update deployment for sample projects

* Update version

* Update "Life Without Cocoapods"
2017-02-01 14:40:37 -08:00

36 lines
1.1 KiB
Objective-C

//
// ASCollectionDataSourceInterop.h
// AsyncDisplayKit
//
// Created by Adlai Holler on 1/20/17.
// Copyright © 2017 Facebook. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AsyncDisplayKit/ASCollectionViewProtocols.h>
NS_ASSUME_NONNULL_BEGIN
/**
* Protocols that allow the data source/delegate extra hooks,
* to facilitate interop e.g. with IGListKit.
*/
@protocol ASCollectionDataSourceInterop <ASCollectionDataSource>
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;
- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
@end
@protocol ASCollectionDelegateInterop <ASCollectionDelegate>
- (void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath;
- (void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath;
@end
NS_ASSUME_NONNULL_END