Skip to content

Commit

Permalink
Update Tweak.x
Browse files Browse the repository at this point in the history
Comment out experimental code
  • Loading branch information
khanhduytran0 committed Jan 7, 2024
1 parent 582d84c commit 0d24eeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
#import <objc/runtime.h>

// Do this to pass most iPad checks
UIUserInterfaceIdiom userInterfaceIdiom = UIUserInterfaceIdiomPad;
//UIUserInterfaceIdiom userInterfaceIdiom = UIUserInterfaceIdiomPad;
@implementation UIDevice(hook)
- (UIUserInterfaceIdiom)userInterfaceIdiom {
return userInterfaceIdiom;
return UIUserInterfaceIdiomPad;
}
@end

/*
%hook _UIStatusBarVisualProvider_iOS
+ (Class)class {
static BOOL called = NO;
Expand All @@ -27,6 +28,7 @@ UIUserInterfaceIdiom userInterfaceIdiom = UIUserInterfaceIdiomPad;
}
}
%end
*/

// The following hooks are taken from various sources, please refer to tweaks that enable Slide Over.
@interface SpringBoard : NSObject
Expand Down

0 comments on commit 0d24eeb

Please sign in to comment.