I have an overlay in my SwiftUI view as follows (for simplicity purpose, I have a view with plain blue color in the code below):
.overlay(alignment: .bottom, content: {
showMenu ? Color.blue.frame(height: 150) : nil
})
My problem is that it does not respect safe area in landscape mode and I see no way to customize it so that the overlay does not cross dynamic island on iPhone 14/15 pro. It is okay to target iOS 16 and above if that simplifies things.