Contents

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 the system applies layout constraints 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.