From d9294c2606ae0d17e17c65b5956630fbc5a17661 Mon Sep 17 00:00:00 2001 From: itok Date: Fri, 8 Mar 2024 10:07:20 +0900 Subject: [PATCH] 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;