The Goal
I am trying to achieve the following design with auto-layout constraints:
What I've Tried
The middle label is straightforward (Horizontally Center to view).
The left and right labels are not as straightforward. Simply adding Leading and Trailing Space constraints of 20 will not work for all content. Furthermore, the detail label underneath can be wider.
I thought about give the right and left labels both Leading and Trailing Space constraints of >= 20 and centering the text.
The Question
How can I achieve this column layout of 3 labels with dynamic content while:
- ensuring they have at least 20pt of padding between each other
- ensuring the left and right labels are inset more than 20pts for smaller content