mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 11:00:07 +00:00
Provide ASCollectionView::calculatedSizeForNodeAtIndexPath:, to be used in custom UICollectionViewLayouts.
This commit is contained in:
parent
3642d5773a
commit
c42d41fb4c
@ -67,6 +67,13 @@
|
|||||||
*/
|
*/
|
||||||
- (void)appendNodesWithIndexPaths:(NSArray *)indexPaths;
|
- (void)appendNodesWithIndexPaths:(NSArray *)indexPaths;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query the sized node at `indexPath` for its calculatedSize.
|
||||||
|
*
|
||||||
|
* @param indexPath The index path for the node of interest.
|
||||||
|
*/
|
||||||
|
- (CGSize)calculatedSizeForNodeAtIndexPath:(NSIndexPath *)indexPath;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
@ -170,6 +170,11 @@ static BOOL _isInterceptedSelector(SEL sel)
|
|||||||
[_rangeController appendNodesWithIndexPaths:indexPaths];
|
[_rangeController appendNodesWithIndexPaths:indexPaths];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (CGSize)calculatedSizeForNodeAtIndexPath:(NSIndexPath *)indexPath
|
||||||
|
{
|
||||||
|
return [_rangeController calculatedSizeForNodeAtIndexPath:indexPath];
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark Assertions.
|
#pragma mark Assertions.
|
||||||
|
|
||||||
- (void)throwUnimplementedException
|
- (void)throwUnimplementedException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user