Stack View to layout content to readable content guide

Number:rdar://44303114 Date Originated:10-Sep-2018
Status:Open Resolved:
Product:UIKit Product Version:iOS 12
Classification:Suggestion Reproducible:
It should be possible to configure a stack view so that it constrains its arranged subviews to the readable content guide of the stack view.

This could be similar to the cellLayoutMarginsFollowReadableWidth property of UITableView.

At present you can configure a stack view to layout its content relative to the layout margin of the stack view:

    stackView.isLayoutMarginsRelativeArrangement = true

But there is no way to have the stack view use the readable content guide. The current workaround is to embed the stack view in a container view and constrain the stack view to the readable content guide of the container view.

This is extra work and adds an extra view to the view hierarchy that would be unnecessary if you could use the readable content guide of the stack view directly.


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!