You have to use SafeAreaInsets. Pass it to your UiViewController in kotlin and use CompositionLocal to make it available in every composable that needs it
s
Sam Stone
04/10/2023, 4:05 AM
Thank you
Sam Stone
04/10/2023, 4:06 AM
@Pablichjenkov so basically it offsets everything?
p
Pablichjenkov
04/10/2023, 4:12 AM
Yeah, per device
Pablichjenkov
04/10/2023, 4:17 AM
An easy solution is to make your root composable a column that has a Spacer with fillMaxWidth and the same height as the SafeAreaInsets.top. Then you place the Content of your App bellow it