Contents

preferredMaxLayoutWidth

The maximum width of the text field’s intrinsic content size.

Declaration

var preferredMaxLayoutWidth: CGFloat { get set }

Discussion

If the text field wraps, the intrinsic height is large enough to show the entire text contents at that width.

The default value is 0, indicating no maximum preferred width.