mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-11 15:10:37 +00:00
32 lines
1.0 KiB
Objective-C
32 lines
1.0 KiB
Objective-C
//
|
|
// ASCollectionViewFlowLayoutInspector.h
|
|
// Pods
|
|
//
|
|
// Created by Levi McCallum on 9/29/15.
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <AsyncDisplayKit/ASDimension.h>
|
|
|
|
@class ASCollectionView;
|
|
|
|
@protocol ASCollectionViewLayoutInspecting <NSObject>
|
|
|
|
- (ASSizeRange)collectionView:(ASCollectionView *)collectionView constrainedSizeForSupplementaryNodeOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
|
|
|
|
- (NSUInteger)collectionView:(ASCollectionView *)collectionView supplementaryViewsOfKind:(NSString *)kind inSection:(NSUInteger)section;
|
|
|
|
@end
|
|
|
|
@interface ASCollectionViewFlowLayoutInspector : NSObject <ASCollectionViewLayoutInspecting>
|
|
|
|
@property (nonatomic, weak) UICollectionViewFlowLayout *layout;
|
|
|
|
- (ASSizeRange)collectionView:(ASCollectionView *)collectionView constrainedSizeForSupplementaryNodeOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
|
|
|
|
- (NSUInteger)collectionView:(ASCollectionView *)collectionView supplementaryViewsOfKind:(NSString *)kind inSection:(NSUInteger)section;
|
|
|
|
@end
|