From eb8e4cb07396722524e733b6eef53dcfe7e675db Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Sat, 13 Jul 2024 10:16:51 -0500 Subject: [PATCH] Updated `iPhone Layout` Option --- YTLitePlus.xm | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 821dd35..07d4579 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -654,9 +654,9 @@ BOOL isTabSelected = NO; %group giPhoneLayout // https://github.com/LillieH001/YouTube-Reborn %hook UIDevice -- (long long)userInterfaceIdiom { - return NO; -} +- (UIUserInterfaceIdiom)userInterfaceIdiom { + return UIUserInterfaceIdiomPhone; +} %end %hook UIStatusBarStyleAttributes - (long long)idiom { @@ -665,12 +665,20 @@ BOOL isTabSelected = NO; %end %hook UIKBTree - (long long)nativeIdiom { - return NO; + if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) { + return NO; + } else { + return YES; + } } %end %hook UIKBRenderer - (long long)assetIdiom { - return NO; + if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) { + return NO; + } else { + return YES; + } } %end %end