I have a weird behavior of `WindowInsets` api on ...
# compose-ios
c
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
Can you try changing background color of UIViewController?
a
You need to set
.ignoresSafeArea()
in SwiftUI to be able to use insets api. Just like fitsSystemWindows on Android
u
@Alexander Zhirkevich Is there no way to do this without
.ignoresSafeArea()
since it cause gaps below app bar and above bottom nav
👍 1
m
Did you eventually figure this out?
c
ignoreSafeArea()
did the trick
👍 1