Layout margin guides are broken throughout UIKit and SwiftUI on the iPhone Duo sim in iOS 27.1 RC.
For example, a cell which looks perfectly fine on a normal iPhone sim (which has a compact horizontal size class), has zero vertical layout margins on iPhone Duo.
Here's some screenshots. The red dotted lines are supposed to show the margins in the cell content view, i.e., the boundary between default padding around the cell (for its background) and the content of the cell.
On every other device and size class these all work, and will have some vertical margin.
iPhone 18 Pro:
iPhone Duo:
As you can see, the border is cut off. No vertical margins at all.
iPhone Duo Unfolded:
Not only is it busted just in UICollectionViews. Check out this segmented control (also configured with layout margins). This works fine on catalyst, iPhone, and iPad.
This makes me very nervous about shipping with the 27.1 SDK.
Is this a known issue? If so, what is the recommended workaround in the meantime?
FB25097501
On iOS 27.1 and later, the default layout margins for a UIView are zero. A view controller continues to provide its view with systemMinimumLayoutMargins, which vary depending on the presentation context. To inherit these margins in a subview of the view controller’s view, set its preservesSuperviewLayoutMargins property to true.