Skip to content

Commit

Permalink
add preferredScreenEdgesDeferringSystemGestures to prevent accidental…
Browse files Browse the repository at this point in the history
… touch (#15920)
  • Loading branch information
mmyduckx authored Aug 10, 2023
1 parent 0eec682 commit 78e3b6e
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 78e3b6e

Please sign in to comment.