Use bhackel’s solution (YTPivotBarReorder.m)

Uses some of “Hide Home Tab” code. I believe this might work.
This commit is contained in:
aricloverEXALT 2025-01-12 15:25:15 -06:00 committed by GitHub
parent 35b7d49d37
commit e3aa792f6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@
#import <YouTubeHeader/YTIPivotBarRenderer.h>
#import <YouTubeHeader/YTIPivotBarSupportedRenderers.h>
#import <YouTubeHeader/YTIPivotBarItemRenderer.h>
#import <YouTubeHeader/YTIIcon.h>
#import <YouTubeHeader/YTAssetLoader.h>
@interface YTPivotBarReorder ()
@ -71,6 +71,7 @@
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
UIImageView *iconView = [[UIImageView alloc] initWithFrame:cell.contentView.bounds];
YTIPivotBarItemRenderer *itemRenderer = self.pivotBarItems[indexPath.row];
iconView.image = [YTAssetLoader loadImageWithIdentifier:itemRenderer.icon.identifier];
iconView.tintColor = [UIColor whiteColor];
iconView.contentMode = UIViewContentModeScaleAspectFit;
[cell.contentView addSubview:iconView];