From d4ad9e3570f197a433bd0719d47154d46e09216a Mon Sep 17 00:00:00 2001 From: bigmstone Date: Tue, 26 Jan 2021 21:23:27 -0600 Subject: [PATCH] IOS ScreenEdge Corrected Default With IOS' PlatformSpeccificWindowBuilderAttributes the preferred_screen_edges_deferring_system_gestures value was previously set to the default (u8 default). This was an invalid value and caused different crashes under screen edge events. Changing this value to a valid value from the ScreenEdge enum fixes these issues. --- src/platform_impl/ios/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/ios/window.rs b/src/platform_impl/ios/window.rs index 90c1fc2da7..3aae6a2f70 100644 --- a/src/platform_impl/ios/window.rs +++ b/src/platform_impl/ios/window.rs @@ -648,7 +648,7 @@ impl Default for PlatformSpecificWindowBuilderAttributes { valid_orientations: Default::default(), prefers_home_indicator_hidden: false, prefers_status_bar_hidden: false, - preferred_screen_edges_deferring_system_gestures: Default::default(), + preferred_screen_edges_deferring_system_gestures: ScreenEdge::ALL, } } }