mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASCellNode] Fix applyLayoutAttributes not called, add readonly layoutAttributes property (#2321)
This commit is contained in:
@@ -74,6 +74,15 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL neverShowPlaceholders;
|
||||
|
||||
/*
|
||||
* The layout attributes currently assigned to this node, if any.
|
||||
*
|
||||
* @discussion This property is useful because it is set before @c collectionView:willDisplayNode:forItemAtIndexPath:
|
||||
* is called, when the node is not yet in the hierarchy and its frame cannot be converted to/from other nodes. Instead
|
||||
* you can use the layout attributes object to learn where and how the cell will be displayed.
|
||||
*/
|
||||
@property (nonatomic, strong, readonly, nullable) UICollectionViewLayoutAttributes *layoutAttributes;
|
||||
|
||||
/*
|
||||
* ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user