mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 15:02:08 +00:00
Added New Option! Portrait Fullscreen
This commit is contained in:
parent
147cf0c6b3
commit
0e5f299038
1 changed files with 15 additions and 2 deletions
17
uYouPlus.xm
17
uYouPlus.xm
|
|
@ -476,8 +476,9 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
// Hide Subscriptions Notification Badge
|
||||
%group gHideSubscriptionsNotificationBadge
|
||||
%hook YTPivotBarIndicatorView
|
||||
- (void)removeFromSuperview {
|
||||
%orig();
|
||||
- (void)didMoveToWindow {
|
||||
[self setHidden:YES];
|
||||
%orig();
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
|
@ -563,6 +564,15 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
- (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; }
|
||||
%end
|
||||
|
||||
// Portrait Fullscreen by Dayanch96
|
||||
%group gPortraitFullscreen
|
||||
%hook YTWatchViewController
|
||||
- (unsigned long long)allowedFullScreenOrientations {
|
||||
return UIInterfaceOrientationMaskAllButUpsideDown;
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
// Disable snap to chapter
|
||||
%hook YTSegmentableInlinePlayerBarView
|
||||
- (void)didMoveToWindow {
|
||||
|
|
@ -871,6 +881,9 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
if (IsEnabled(@"ytSpeed_enabled")) {
|
||||
%init(gYTSpeed);
|
||||
}
|
||||
if (IsEnabled(@"portraitFullscreen_enabled")) {
|
||||
%init(gPortraitFullscreen);
|
||||
}
|
||||
if (IsEnabled(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
|
||||
%init(giPhoneLayout);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue