on Android it works as expected (draws cyan behind status and nav bar) but iOS does not budge.
On iOS having
ComposeView().ignoreSafeArea()
does nothing it seems?
CMP 1.7.3
d
Dovydas
03/26/2025, 9:05 PM
Try
ComposeView().ignoresSafeArea(.container)
k
krzysztof
03/26/2025, 9:09 PM
same result, but itโs expected, as no argument to
ignoreSafeArea
expands content to all regions
d
Dovydas
03/26/2025, 9:13 PM
If you're applying it like this and it doesn't work then I'm not sure
k
krzysztof
03/26/2025, 9:15 PM
okay found it - it was me ๐ I built the ios project from scratch and as the main SwiftUI view I used the UIController one directly (UIViewControllerRepresentable) instead of SwiftUI view (which had .ignoreSafeArea applied)
๐ 2
krzysztof
03/26/2025, 9:15 PM
too bad xcode did not mark it as not used, would have help