mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Add scrollToItem: Method to Node, Handle Section Index Paths (#2462)
* Add scrollToItem: method to node, handle section index paths * Update ASPagerNode.mm to use the node version * Add some docs
This commit is contained in:
@@ -136,6 +136,17 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (void)setTuningParameters:(ASRangeTuningParameters)tuningParameters forRangeMode:(ASLayoutRangeMode)rangeMode rangeType:(ASLayoutRangeType)rangeType;
|
||||
|
||||
/**
|
||||
* Scrolls the collection to the given item.
|
||||
*
|
||||
* @param indexPath The index path of the item.
|
||||
* @param scrollPosition Where the item should end up after the scroll.
|
||||
* @param animated Whether the scroll should be animated or not.
|
||||
*
|
||||
* This method must be called on the main thread.
|
||||
*/
|
||||
- (void)scrollToItemAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UICollectionViewScrollPosition)scrollPosition animated:(BOOL)animated;
|
||||
|
||||
#pragma mark - Editing
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user