Autoshrink on a UILabel with multiple lines

I found this link http://beckyhansmeyer.com/2015/04/09/autoshrinking-text-in-a-multiline-uilabel/

The problem can be solved using the Interface Builder in 3 simple steps:

  1. Set “Autoshrink” to “Minimum font size.”
  2. Set the font to your
    largest desirable font size (20) and set Lines to, say, 10, which in my case was as
    many lines as would fit in the label at that font size.
  3. Then, change “Line
    Breaks” from “Word Wrap” to “Truncate Tail.”

Hope it helps!

Leave a Comment