Updated iPhone Layout Option

This commit is contained in:
arichornlover
2024-07-13 10:16:51 -05:00
committed by GitHub
parent 6b78aba609
commit eb8e4cb073

View File

@@ -654,9 +654,9 @@ BOOL isTabSelected = NO;
%group giPhoneLayout // https://github.com/LillieH001/YouTube-Reborn %group giPhoneLayout // https://github.com/LillieH001/YouTube-Reborn
%hook UIDevice %hook UIDevice
- (long long)userInterfaceIdiom { - (UIUserInterfaceIdiom)userInterfaceIdiom {
return NO; return UIUserInterfaceIdiomPhone;
} }
%end %end
%hook UIStatusBarStyleAttributes %hook UIStatusBarStyleAttributes
- (long long)idiom { - (long long)idiom {
@@ -665,12 +665,20 @@ BOOL isTabSelected = NO;
%end %end
%hook UIKBTree %hook UIKBTree
- (long long)nativeIdiom { - (long long)nativeIdiom {
return NO; if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) {
return NO;
} else {
return YES;
}
} }
%end %end
%hook UIKBRenderer %hook UIKBRenderer
- (long long)assetIdiom { - (long long)assetIdiom {
return NO; if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) {
return NO;
} else {
return YES;
}
} }
%end %end
%end %end