Instance Property

preferredMaxLayoutWidth

The preferred maximum width (in points) for a multiline label.

Declaration

var preferredMaxLayoutWidth: CGFloat { get set }

Discussion

This property affects the size of the label when layout constraints are applied to it. During layout, if the text extends beyond the width specified by this property, the additional text flows to one or more new lines, increasing the height of the label.