From 242786c9cf393203faee89194358d92c12ce5ec9 Mon Sep 17 00:00:00 2001 From: Motokazu Sekine Date: Mon, 15 Apr 2024 12:21:51 +0900 Subject: [PATCH 1/2] customize window level --- .../Sources/DefaultUI/FIRIAMRenderingWindowHelper.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m b/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m index e920a32e63c..7eb340db56b 100644 --- a/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m +++ b/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m @@ -37,7 +37,8 @@ + (UIWindow *)windowForBlockingView { #if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 } #endif // defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 - UIWindowForModal.windowLevel = UIWindowLevelNormal; + // NOTE: iPad で Keyboard accessory view が前面に表示されてしまうため window level をカスタマイズ + UIWindowForModal.windowLevel = UIWindowLevelStatusBar; }); return UIWindowForModal; } @@ -57,7 +58,8 @@ + (UIWindow *)windowForNonBlockingView { #if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 } #endif - UIWindowForBanner.windowLevel = UIWindowLevelNormal; + // NOTE: iPad で Keyboard accessory view が前面に表示されてしまうため window level をカスタマイズ + UIWindowForBanner.windowLevel = UIWindowLevelStatusBar; }); return UIWindowForBanner; From 23908f3d631706de0f14caec0d89a8afc56b35b0 Mon Sep 17 00:00:00 2001 From: Motokazu Sekine Date: Mon, 15 Apr 2024 12:40:49 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=87=E3=83=B3?= =?UTF-8?q?=E3=83=88=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/DefaultUI/FIRIAMRenderingWindowHelper.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m b/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m index 7eb340db56b..f7c7471f0e5 100644 --- a/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m +++ b/FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m @@ -37,8 +37,8 @@ + (UIWindow *)windowForBlockingView { #if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 } #endif // defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 - // NOTE: iPad で Keyboard accessory view が前面に表示されてしまうため window level をカスタマイズ - UIWindowForModal.windowLevel = UIWindowLevelStatusBar; + // NOTE: iPad で Keyboard accessory view が前面に表示されてしまうため window level をカスタマイズ + UIWindowForModal.windowLevel = UIWindowLevelStatusBar; }); return UIWindowForModal; } @@ -58,8 +58,8 @@ + (UIWindow *)windowForNonBlockingView { #if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 } #endif - // NOTE: iPad で Keyboard accessory view が前面に表示されてしまうため window level をカスタマイズ - UIWindowForBanner.windowLevel = UIWindowLevelStatusBar; + // NOTE: iPad で Keyboard accessory view が前面に表示されてしまうため window level をカスタマイズ + UIWindowForBanner.windowLevel = UIWindowLevelStatusBar; }); return UIWindowForBanner;