mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-11 17:00:02 +00:00
* Add _ASCollectionReusableView container for ASCollectionNode supplementary nodes with applyLayoutAttributes support • Adds support for -[ASCellNode applyLayoutAttributes:] to supplementary nodes * Ensure _ASCollectionReusableView has layoutAttributes if the collection view doesn’t set them * Use correct layoutAttributes accessor for supplementary elements
23 lines
522 B
Objective-C
23 lines
522 B
Objective-C
//
|
|
// _ASCollectionReusableView.h
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Phil Larson on 4/10/17.
|
|
// Copyright © 2017 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <AsyncDisplayKit/ASBaseDefines.h>
|
|
|
|
@class ASCellNode;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
AS_SUBCLASSING_RESTRICTED
|
|
@interface _ASCollectionReusableView : UICollectionReusableView
|
|
@property (nonatomic, weak) ASCellNode *node;
|
|
@property (nonatomic, strong, nullable) UICollectionViewLayoutAttributes *layoutAttributes;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|