Skip to content

Commit

Permalink
add preferredScreenEdgesDeferringSystemGestures to prevent accidental…
Browse files Browse the repository at this point in the history
… touch
  • Loading branch information
mmyduckx committed Aug 10, 2023
1 parent e1caa28 commit 37c030d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/ios/ViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@ - (BOOL)prefersStatusBarHidden {
return YES;
}

// Controls the application's preferred home indicator auto-hiding when this view controller is shown.
// Controls the application's screen edge gesture delay to prevent accidental touches
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures
{
return UIRectEdgeAll;
}

// Controls the application's preferred home indicator auto-showing otherwise preferredScreenEdgesDeferringSystemGestures is invalidation
- (BOOL)prefersHomeIndicatorAutoHidden {
return YES;
return NO;
}

- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
Expand Down

0 comments on commit 37c030d

Please sign in to comment.