Mofe Ejegi
05/30/2024, 5:34 PMstatusBarsPadding()
, no padding is applied when the app is in landscape on the iPad.
Has anyone else encountered this? Please what did you try as a workaround?
PS: I'm already using ComposeView().ignoresSafeArea(.all)
in the SwiftUI part.
https://developer.apple.com/design/human-interface-guidelines/layout#iOS-iPadOS-safe-areasAndrei Salavei
05/30/2024, 7:31 PMMofe Ejegi
05/30/2024, 8:09 PMactual val WindowInsets.Companion.statusBars: WindowInsets
@Composable
@OptIn(InternalComposeApi::class)
get() = when (LocalInterfaceOrientation.current) {
InterfaceOrientation.Portrait -> iosSafeArea.only(WindowInsetsSides.Top)
else -> ZeroInsets
}
I guess it was intentional? 🤷♂️
In the meantime, I'll be using this when I want to explicitly use statusBarsPadding()
on Expanded iOS screens
.windowInsetsPadding(WindowInsets.systemBars.only(WindowInsetsSides.Top))
Mofe Ejegi
05/30/2024, 8:22 PMAndrei Salavei
05/31/2024, 7:30 AMMofe Ejegi
07/28/2024, 7:32 AM