Update uYouPlusExtra Logo again

I had to urgently change something. If YTHeaderLogoController was set to NULL, it will remove the controller and then the custom logo won’t show up.
This commit is contained in:
arichornlover 2023-11-26 13:00:22 -06:00 committed by GitHub
parent b3bf06ce7e
commit ed5da99036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,9 +202,12 @@ static void repositionCreateTab(YTIGuideResponse *response) {
[logoView addSubview:customLogoView];
}
%end
%hook YTHeaderLogoController // Hide Original YouTube Logo - this will prevent Overlapping on the custom YouTube Logo
- (YTHeaderLogoController *)init {
return NULL;
%hook YTNavigationBarTitleView // Hide Original YouTube Logo - this will prevent Overlapping on the custom YouTube Logo
- (void)layoutSubviews {
%orig;
if (self.subviews.count > 1 && [self.subviews[1].accessibilityIdentifier isEqualToString:@"id.yoodle.logo"]) {
self.subviews[1].hidden = YES;
}
}
%end
%end