mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Finish Porting indexPath-Oriented Methods to ASTableNode/ASCollectionNode (#2527)
* Finish porting over the indexPath-oriented properties from table/collection view to node * Make indexPathForSelectedRow a property
This commit is contained in:
@@ -319,6 +319,13 @@
|
||||
|
||||
#pragma mark - Selection
|
||||
|
||||
- (NSArray<NSIndexPath *> *)indexPathsForSelectedItems
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
ASCollectionView *view = self.view;
|
||||
return [view convertIndexPathsToCollectionNode:view.indexPathsForSelectedItems];
|
||||
}
|
||||
|
||||
- (void)selectItemAtIndexPath:(nullable NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UICollectionViewScrollPosition)scrollPosition
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
|
||||
Reference in New Issue
Block a user