Contents

minimumScaleFactor

The minimum scale factor for the label’s text.

Declaration

var minimumScaleFactor: CGFloat { get set }

Discussion

If the adjustsFontSizeToFitWidth is true, use this property to specify the smallest multiplier for the current font size that yields an acceptable font size for the label’s text. If you specify a value of 0 for this property, the label doesn’t scale the text down. The default value of this property is 0.

To reveal the text field for editing minimum scale factor in Interface Builder, choose Minimum Font Scale from the Autoshrink pop-up menu in the label’s Attributes inspector.

See Also

Sizing the label’s text