Skip to content

Instantly share code, notes, and snippets.

@Mabdelwanis
Forked from thomasfinch/Rotation Enabler
Created November 30, 2023 22:09
Show Gist options
  • Save Mabdelwanis/2516fe232f534f3952088b0561294986 to your computer and use it in GitHub Desktop.
Save Mabdelwanis/2516fe232f534f3952088b0561294986 to your computer and use it in GitHub Desktop.
%hook SpringBoard
-(BOOL)homeScreenSupportsRotation {
return YES;
}
-(BOOL)homeScreenRotationStyleWantsUIKitRotation {
return YES;
}
-(int)homeScreenRotationStyle {
return 2; //iPhone 6+ style. 0 is normal iPhone style (no landscape), 1 is iPad style (horizontal dock)
}
%end
%hook SBLockScreenViewController
-(BOOL)shouldAutorotateToInterfaceOrientation:(int)interfaceOrientation {
return YES;
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment