Instance Property

minimumScaleFactor

The minimum scale factor supported 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

var adjustsFontSizeToFitWidth: Bool

A Boolean value indicating whether the label should reduce the text’s font size in order to fit the title string into the label’s bounding rectangle.

var allowsDefaultTighteningForTruncation: Bool

A Boolean value indicating whether the label tightens text before truncating.

var baselineAdjustment: UIBaselineAdjustment

An option that controls whether the text's baseline should remain fixed when text needs to shrink to fit in the label.

var numberOfLines: Int

The maximum number of lines to use for rendering text.