Skip to content

Commit

Permalink
Allw upside down home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Mar 4, 2024
1 parent 3000974 commit aadb738
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,20 @@ static uint16_t forcePadIdiom = 0;
}
%end

// Allow upside down Home Screen
%hook SBHomeScreenViewController
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return %orig | UIInterfaceOrientationMaskPortraitUpsideDown;
}
%end

// Allow upside down Lock Screen
%hook SBCoverSheetPrimarySlidingViewController
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return %orig | UIInterfaceOrientationMaskPortraitUpsideDown;
}
%end

// The following hooks are taken from various sources, please refer to tweaks that enable Slide Over.
%hook SpringBoard
- (NSInteger)homeScreenRotationStyle {
Expand Down

0 comments on commit aadb738

Please sign in to comment.