From f794f4f5c02159ae0537932b8ff4e57b80a70ecf Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:11:02 -0600 Subject: [PATCH] Update YTPivotBarReorder.m --- Sources/YTPivotBarReorder.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/YTPivotBarReorder.m b/Sources/YTPivotBarReorder.m index 5bdba8d..ac7e959 100644 --- a/Sources/YTPivotBarReorder.m +++ b/Sources/YTPivotBarReorder.m @@ -53,7 +53,7 @@ YTIPivotBarRenderer *pivotBarRenderer = [guideRenderers pivotBarRenderer]; for (YTIPivotBarSupportedRenderers *renderer in [pivotBarRenderer itemsArray]) { YTIPivotBarItemRenderer *itemRenderer = [renderer pivotBarItemRenderer]; - if (itemRenderer && itemRenderer.isVisible) { + if (itemRenderer && !itemRenderer.isDisabled) { [activeTabs addObject:itemRenderer]; } } @@ -79,9 +79,7 @@ } - (UIImage *)imageFromYTIIcon:(YTIIcon *)icon { - // Implement the conversion from YTIIcon to UIImage - // This is a placeholder implementation and should be replaced with actual conversion logic - NSURL *url = [NSURL URLWithString:icon.iconURL]; + NSURL *url = [NSURL URLWithString:icon.iconURLString]; NSData *data = [NSData dataWithContentsOfURL:url]; return [UIImage imageWithData:data]; }