---
title: preferredMaxLayoutWidth
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilabel/preferredmaxlayoutwidth
---

# preferredMaxLayoutWidth

The preferred maximum width, in points, for a multiline label.

## Declaration

```swift
var preferredMaxLayoutWidth: CGFloat { get set }
```

## Discussion

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.
