@Frameworks Engineer
Thanks for the quick reply. I'm having trouble squaring it with what I'm seeing though, and I'd appreciate a little more detail & clarification so I can handle the layout for the Duo correctly in our app.
This only happens on the iPhone Duo. On the same iOS 27.1 runtime, the same cell on iPhone and iPad gets nonzero margins. If the default changed to zero for every UIView in 27.1 as you stated, I'd expect it on every device. So it implies a special case for Duo for every cell / view that relies on this. Why am I seeing behavior specific to Duo if all UIView layout margins are expected to be zero?
This guidance contradicts longstanding guidance and documentation. The current layoutMargins docs say the following:
For other subviews in your view hierarchy, the default layout margins are normally 8 points on each side, but the values may be greater if the view is not fully inside the safe area or if the preservesSuperviewLayoutMargins property is true.
If zero is now intended, the docs and release notes don't say this. Further, the previous understanding meant that preserving the superview margins could mean my view inherited greater margins, which is not what I want.
3.. The suggested fix doesn't restore vertical spacing because the superview's margins are also zero. Further, view controller's systemMinimumLayoutMargins are zero on top and bottom on iPhone, so inheriting them with preservesSuperviewLayoutMargins would still give zero vertical margins.
Here's the result of the suggested fix. Vertical margins are still zero.
Given the above, are we still positive this issue isn't a bug?