auto-hide home indicator

This commit is contained in:
Jesús A. Álvarez 2024-03-01 22:49:04 +01:00
parent 2dab9cca28
commit 65d377884b
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@ static int8_t usb_to_adb_scancode[] = {
[[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:@"trackpad"];
}
- (BOOL)prefersHomeIndicatorAutoHidden {
return YES;
}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (motion == UIEventSubtypeMotionShake) {
[[AppDelegate sharedInstance] showInsertDisk:self];