mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-10 14:51:16 +00:00
Add collectionNode:nodeBlockForSupplementaryElementOfKind:atIndexPath: (#3078)
* Add optional support for nodeBlockForSupplementaryElementOfKind: * Update example * Update harder
This commit is contained in:
@@ -480,6 +480,15 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (ASCellNode *)collectionNode:(ASCollectionNode *)collectionNode nodeForItemAtIndexPath:(NSIndexPath *)indexPath;
|
||||
|
||||
/**
|
||||
* Asks the data source to provide a node-block to display for the given supplementary element in the collection view.
|
||||
*
|
||||
* @param collectionNode The sender.
|
||||
* @param kind The kind of supplementary element.
|
||||
* @param indexPath The index path of the supplementary element.
|
||||
*/
|
||||
- (ASCellNodeBlock)collectionNode:(ASCollectionNode *)collectionNode nodeBlockForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
|
||||
|
||||
/**
|
||||
* Asks the data source to provide a node to display for the given supplementary element in the collection view.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user