https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
c

Cherrio LLC

11/20/2023, 4:09 PM
I have a weird behavior of
WindowInsets
api on iOS. The below image shows it works fine on Android. More in 🧵
Below is my code, is there any other setup required on iOS??
u

लातों वाला भूत

11/20/2023, 4:28 PM
Can you try changing background color of UIViewController?
a

Alexander Zhirkevich

11/20/2023, 10:17 PM
You need to set
.ignoresSafeArea()
in SwiftUI to be able to use insets api. Just like fitsSystemWindows on Android
u

लातों वाला भूत

11/20/2023, 10:21 PM
@Alexander Zhirkevich Is there no way to do this without
.ignoresSafeArea()
since it cause gaps below app bar and above bottom nav
👍 1
m

Mofe Ejegi

11/21/2023, 6:08 AM
Did you eventually figure this out?
c

Cherrio LLC

11/21/2023, 6:41 AM
ignoreSafeArea()
did the trick
👍 1