UIWindow safeAreaInset.bottom value is 20.0 on iPad even when window is presented like a "modal view controller" via UIWindowSceneActivationAction

When I open a new window via UIWindowSceneActivationAction, the window is shown like a modally presented view controller. I noticed a little layout hiccup when the window is in this state, because the window is reporting a safeAreaInset.bottom value of 20.0 even though the window is nowhere near the Home Indicator.

Is there a good way to detect when a window is in this "modal like presentation" state on iPad? Size classes don't provide. I'd hate to have to sniff the frame of the window and compare it to the mainScreen frame (I know UIScreen.mainScreen is deprecated)?

I decided to just live with the safeAreaInset bottom value of 20.0 even when the external window scene is presented like this. Adjusted a few things to make it look better in my UI but not worth comparing the frame of the window vs the frame of the screen to detect this state, as that code is too fragile.

I still think the safeAreaInset bottom should be 0 when the window scene is presented in this style.

UIWindow safeAreaInset.bottom value is 20.0 on iPad even when window is presented like a "modal view controller" via UIWindowSceneActivationAction
 
 
Q