Update uYouPlus.xm

This commit is contained in:
arichornlover 2023-11-25 19:04:22 -06:00 committed by GitHub
parent 5197eacd2a
commit a3581bf3ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]) {