It seems when adjustsFontSizeToFitWidth = true
and you have numberOfLines
set to a constant (I used 2), when Auto Layout calculates the size of the UILabel it uses the font size that's set on the label's font
property, instead of the font size that it's adjusted to when its laid out. When I increase the font size, the height of the label's frame grows, but the displayed font size stays the same (since it's limited to 2 lines and its sides are pinned to its superview).
My hacky solution is to somehow find the biggest font size that will completely fill the width of the label's frame while still fitting on 2 lines, and then set the font size to that so the auto shrinking doesn't occur.
Is there a way to tell Auto Layout to shrink the text before calculating size?