Skip to content

Commit

Permalink
customize window level
Browse files Browse the repository at this point in the history
  • Loading branch information
itok committed Mar 8, 2024
1 parent 33cf55b commit d9294c2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit d9294c2

Please sign in to comment.