mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Workaround for iOS 15 uYou settings bug (#10)
This commit is contained in:
parent
6418f3daeb
commit
11ddcd421d
2 changed files with 13 additions and 0 deletions
3
Header.h
3
Header.h
|
|
@ -30,6 +30,9 @@
|
|||
@interface FRPSliderCell : UITableViewCell
|
||||
@end
|
||||
|
||||
@interface boolSettingsVC : UIViewController
|
||||
@end
|
||||
|
||||
// iOS16 fix
|
||||
@interface OBPrivacyLinkButton : UIButton
|
||||
- (instancetype)initWithCaption:(NSString *)caption
|
||||
|
|
|
|||
10
uYouPlus.xm
10
uYouPlus.xm
|
|
@ -222,6 +222,16 @@ BOOL hidePaidPromotionCard() {
|
|||
}
|
||||
%end
|
||||
|
||||
// Workaround for qnblackcat/uYouPlus#10
|
||||
%hook boolSettingsVC
|
||||
- (instancetype)initWithTitle:(NSString *)title sections:(NSArray *)sections footer:(NSString *)footer {
|
||||
if (@available(iOS 15, *))
|
||||
if (![self valueForKey:@"_lastNotifiedTraitCollection"])
|
||||
[self setValue:[UITraitCollection currentTraitCollection] forKey:@"_lastNotifiedTraitCollection"];
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
|
||||
%hook YTVideoQualitySwitchControllerFactory
|
||||
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder {
|
||||
|
|
|
|||
Loading…
Reference in a new issue