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,8 +654,8 @@ 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
@@ -665,12 +665,20 @@ BOOL isTabSelected = NO;
%end
%hook UIKBTree
- (long long)nativeIdiom {
if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) {
return NO;
} else {
return YES;
}
}
%end
%hook UIKBRenderer
- (long long)assetIdiom {
if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait) {
return NO;
} else {
return YES;
}
}
%end
%end