Instance Property


The minimum scale factor supported for the label’s text.


var minimumScaleFactor: CGFloat { get set }


If the adjustsFontSizeToFitWidth property is set to true, use this property to specify the smallest multiplier for the current font size that yields an acceptable font size to use when displaying the label’s text. If you specify a value of 0 for this property, the current font size is used as the smallest font size.The default value of this property is 0.

See Also

Sizing the Label’s Text

var adjustsFontSizeToFitWidth: Bool

A Boolean value indicating whether the font size should be reduced 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

Controls how text baselines are adjusted when text needs to shrink to fit in the label.

var numberOfLines: Int

The maximum number of lines to use for rendering text.