UISheetPresentationController issues on iPhone Duo

I have an App where I use the UISheetPresentationController to present a menu as a "drawer" (like the "FindMy" or "Maps") App. Because the sheet is presented over a map, I made the sheet semi-transparent/blurry, so the Map shines through, which looks nice. The sheet is using a UITableView with the "insetGroup" style, so the table cells have the nice rounded borders and there are margins to the sheet borders.

When running the App on the iPhone Duo (Simulator) on the outer display, the tableView does no longer respect the "insetGroup" style, it is rendered like it would have the "plain" style, which destroys everything that look good. No rounded borders, no margins.

However if I opt-out of the automatic "vertical toolbar behavior" (overriding preferredVerticalBarBehavior so it returns "disabled"), then everything looks great again, however then the sheet content might overlap with the sidebar icons and camera because it now covers the whole area up to the right screen border.

Is this supposed to be this way (if yes, why?), is there a way to fix this, or do we have to wait for a bugfix within iOS 27.1? The tableview still claims to have the "insetGrouped" style, just it does not render this way.

I did not see any similar issues under other circumstances. Only UISheetPresentationController seems to be affected by this.

Is there a way to correctly detect if the App is running on an iPhone Duo, so we could use this detection to add workarounds for such issues?

This is unexpected. Could you please file a feedback report with a sample project that reproduces the issue and share the feedback number here?

Unfortunately the 27.1 RC is still broken and destroys the tableviews on the Duo. What is the proposed way to deal with this situation? Just ship our Apps with damaged tableviews is not a good idea. Do we need to delay supporting the Duo?

@elementarteilchen How are you adding the table view to the sheet? I had a similar issue where an inset grouped table view was appearing incorrectly as you are experiencing. In my case it came down to removing some references to safeAreaLayoutGuide in constraints being used to embed a UITableViewController in a container view controller. Once that was done the table view showed correctly on the Duo as well as still working on other devices and other versions of iOS.

@RickMaddy Thanks for the hint about the safeArea. This bug seems to be indeed related to the safeArea. When replacing any constraints which are related to the safeArea, the "grouped" style will look fine now. However I'm not yet fully sure if ignoring the "safeArea" would not introduce some issues under certain circumstances - but so far it is looking good at least in my App.

Thank you very much.

Nevertheless this needs to be fixed, the safeArea is still something important which needs to work.

UISheetPresentationController issues on iPhone Duo
 
 
Q