Updating Auto Layout
When the constraints were set up for the Name, Serial Number, and Value labels, you pinned the width and the height. This worked well when the text was a fixed font and text size, but now that you have introduced Dynamic Type, your interface does not scale. If the user selects a small text size, there will be a lot of empty whitespace; if the user selects a very large text size, there is a chance that the text could be clipped. What you need to do is utilize the intrinsicContentSize of the labels to allow them to resize themselves to exactly the size they need to be.
Open BNRDetailViewController.xib. In the canvas, select each of the four labels, one by one, and remove their explicit width and height constraints. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access