XCode or IOS 18 Bug?

I just finished updating my app to support the new screen sizes for the iPhone 16 series devices (iPhone16 Pro and iPhone 16 Pro Max). In testing the changes, I've come across what I hope is simply a bug in the Xcode 16 simulators. I don't have any actual devices (yet) that I can use to test.

In landscape mode, my app presents a "tab" on the right side of the screen that can be tapped to bring out another view. Activating the tab is based on capturing the screen coordinates from a "tap".

In Xcode 16, using the iPhone16 simulators on IOS 18, the area of the tab does not recognize that a tap has occurred. After hours of banging my head against my laptop, it dawned on me that the area of the screen that hosts the "tab" is in exactly the same location as "unavailable area" that represents the camera on the simulator. I have arrived at the assumption that the issue is that the simulator is treating the same space at the bottom of the device as it treats that reserved area at the top of the screen.

  1. Has anyone else experienced this?

  2. Is this a bug in the simulator or is this expected behavior on the iPhone 16 series devices?

Does it work in Xcode 15 with iPhone 15 pro Max ? Or in other simulators with Xcode 16 ?

There was something a bit similar, in SwiftUI: https://developer.apple.com/forums/thread/763158

My first check when seeing issues like this is to inspect the view hierarchy and make sure that everything is sized correctly so that child views are completely contained within their parent.

I am facing similar issue, one of the navigation item is not showing only on ios 18, I tested the same app for ios 17, it shows perfectly fine

XCode or IOS 18 Bug?
 
 
Q