diff options
author | Zach Coleman <ztc0611@gmail.com> | 2022-10-12 15:17:36 -0400 |
---|---|---|
committer | Zach Coleman <ztc0611@gmail.com> | 2022-10-12 15:22:54 -0400 |
commit | d78051c92c568fa8a36b44d565955f3088069cf8 (patch) | |
tree | c49fee5e0c35ad1ce5f8fce845d50cf5f8dd3d34 /platform | |
parent | ea47e03b360d0aeee10c1f7ef798f5750c2b1aa8 (diff) |
Add iOS UI Options
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/view_controller.mm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/platform/ios/view_controller.mm b/platform/ios/view_controller.mm index 43669d3f94..53c5d3d0b4 100644 --- a/platform/ios/view_controller.mm +++ b/platform/ios/view_controller.mm @@ -164,7 +164,11 @@ // MARK: Orientation - (UIRectEdge)preferredScreenEdgesDeferringSystemGestures { - return UIRectEdgeAll; + if (GLOBAL_GET("display/window/ios/suppress_ui_gesture")) { + return UIRectEdgeAll; + } else { + return UIRectEdgeNone; + } } - (BOOL)shouldAutorotate { @@ -206,7 +210,11 @@ } - (BOOL)prefersStatusBarHidden { - return YES; + if (GLOBAL_GET("display/window/ios/hide_status_bar")) { + return YES; + } else { + return NO; + } } - (BOOL)prefersHomeIndicatorAutoHidden { |