mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Update YTPivotBarReorder.m
This commit is contained in:
parent
f9fce76acc
commit
ccc385a126
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#import "YTPivotBarReorder.h"
|
||||
#import "ReorderNotificationsBar.h"
|
||||
#import "uYouPlus.h"
|
||||
#import <YouTubeHeader/YTIGuideResponse.h>
|
||||
#import <YouTubeHeader/YTIGuideResponseSupportedRenderers.h>
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
#import <YouTubeHeader/YTIPivotBarSupportedRenderers.h>
|
||||
#import <YouTubeHeader/YTIPivotBarItemRenderer.h>
|
||||
|
||||
@interface YTPivotBarReorder ()
|
||||
@interface ReorderNotificationsBar ()
|
||||
|
||||
@property (strong, nonatomic) UICollectionView *collectionView;
|
||||
@property (strong, nonatomic) NSMutableArray *pivotBarItems;
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
@end
|
||||
|
||||
@implementation YTPivotBarReorder
|
||||
@implementation ReorderNotificationsBar
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
- (void)reorderPivotTabToIndex:(NSUInteger)index {
|
||||
if (index >= self.pivotBarItems.count) return;
|
||||
|
||||
YTIPivotBarItemRenderer *selectedItem = self.pivotBarItems[0]; // Assuming the first item is the one to reorder
|
||||
YTIPivotBarItemRenderer *selectedItem = self.pivotBarItems[0];
|
||||
[self.pivotBarItems removeObjectAtIndex:0];
|
||||
[self.pivotBarItems insertObject:selectedItem atIndex:index];
|
||||
[self.collectionView reloadData];
|
||||
|
|
|
|||
Loading…
Reference in a new issue