mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Further implement data controller support and layout introspection
This commit is contained in:
committed by
Levi McCallum
parent
658b78d552
commit
da7a2a5d48
@@ -17,7 +17,7 @@
|
||||
@class ASCellNode;
|
||||
@protocol ASCollectionViewDataSource;
|
||||
@protocol ASCollectionViewDelegate;
|
||||
|
||||
@protocol ASCollectionViewLayoutInspecting;
|
||||
|
||||
/**
|
||||
* Node-based collection view.
|
||||
@@ -80,6 +80,13 @@
|
||||
*/
|
||||
@property (nonatomic, assign) CGFloat leadingScreensForBatching;
|
||||
|
||||
/**
|
||||
* Optional introspection object for the collection view's layout.
|
||||
*
|
||||
* TODO: Discuss more about this delegate
|
||||
*/
|
||||
@property (nonatomic, weak) id<ASCollectionViewLayoutInspecting> layoutDelegate;
|
||||
|
||||
/**
|
||||
* Perform a batch of updates asynchronously, optionally disabling all animations in the batch. This method must be called from the main thread.
|
||||
* The asyncDataSource must be updated to reflect the changes before the update block completes.
|
||||
@@ -119,7 +126,7 @@
|
||||
*/
|
||||
- (void)reloadData;
|
||||
|
||||
- (void)registerSupplementaryViewOfKind:(NSString *)elementKind;
|
||||
- (void)registerSupplementaryNodeOfKind:(NSString *)elementKind;
|
||||
|
||||
/**
|
||||
* Inserts one or more sections.
|
||||
|
||||
Reference in New Issue
Block a user