From a3581bf3ba3313d11709855f425bd7c3ec6a2b74 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Sat, 25 Nov 2023 19:04:22 -0600 Subject: [PATCH] Update uYouPlus.xm --- uYouPlus.xm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 1b6a292..73ee7fa 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -159,14 +159,13 @@ static void repositionCreateTab(YTIGuideResponse *response) { %new - (void)customLogoWithImageName:(NSString *)imageName { UIImageView *customLogoView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 122, 48)]; - customLogoView.image = [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"/Library/Application Support/uYouPlus.bundle/%@", imageName]]; + customLogoView.image = [UIImage imageWithContentsOfFile:@"/Library/Application Support/uYouPlus.bundle/" stringByAppendingString:imageName]; UIView *logoView = [self valueForKey:@"logoView"]; [logoView addSubview:customLogoView]; } %end -// Remove Original YouTube Logo - this prevents the custom Logo from Overlapping with the Original -%hook YTNavigationBarTitleView +%hook YTNavigationBarTitleView // Hide Original YouTube Logo - this prevents the custom Logo from Overlapping with the Original - (void)layoutSubviews { %orig; if (self.subviews.count > 1 && [self.subviews[1].accessibilityIdentifier isEqualToString:@"id.yoodle.logo"]) {