The padding modifier should align to layoutMargins by default

Number:rdar://FB8935060 Date Originated:10/12/2020
Status:Open Resolved:
Product:SwiftUI Product Version:iOS 14.3
Classification:Incorrect/Unexpected behaviour Reproducible:NA
The iOS human interface guidelines recommend aligning content to your view controller’s layoutMarginsGuide, so content lines up alongside other views such as the UINavigationController title, table/collection view lists, etc.

The SwiftUI padding modifier, however, applies a default padding of 15 points, whereas the layoutMargins vary from 15 to 20 points across iPhone models. This modifier should, when applied to an outer-level, align content to the layoutMargins instead.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!