From e3aa792f6e4c8a4a0918611b5d99d75232ac4e8e Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sun, 12 Jan 2025 15:25:15 -0600 Subject: [PATCH] =?UTF-8?q?Use=20bhackel=E2=80=99s=20solution=20(YTPivotBa?= =?UTF-8?q?rReorder.m)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uses some of “Hide Home Tab” code. I believe this might work. --- Sources/YTPivotBarReorder.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/YTPivotBarReorder.m b/Sources/YTPivotBarReorder.m index 9aac11b..35da147 100644 --- a/Sources/YTPivotBarReorder.m +++ b/Sources/YTPivotBarReorder.m @@ -5,7 +5,7 @@ #import #import #import -#import +#import @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];