<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UILabel/lineBreakMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UILabel(py)lineBreakMode"
  },
  "title" : "lineBreakMode"
}
-->

# lineBreakMode

The technique for wrapping and truncating the label’s text.

```
var lineBreakMode: NSLineBreakMode { get set }
```

## Discussion

If you aren’t using styled text, this property applies to the entire text string in the [`text`](/documentation/UIKit/UILabel/text) property. If you’re using styled text, assigning a new value to this property applies the line break mode to the entirety of the string in the [`attributedText`](/documentation/UIKit/UILabel/attributedText) property. To apply the line break mode to only a portion of the text, create a new attributed string with the desired style information and associate it with the label. However, [`NSParagraphStyle`](/documentation/UIKit/NSParagraphStyle) properties, such as those defined by [`NSLineBreakMode`](/documentation/UIKit/NSLineBreakMode), apply to entire paragraphs (as defined for <doc://com.apple.documentation/documentation/Foundation/NSString/paragraphRange(for:)>), not words within paragraphs.

This property is in effect both during normal drawing and in cases where the label must reduce the font size to fit the text in its bounding box. The default value of this property is [`NSLineBreakMode.byTruncatingTail`](/documentation/UIKit/NSLineBreakMode/byTruncatingTail).

## See Also

[`adjustsFontSizeToFitWidth`](/documentation/UIKit/UILabel/adjustsFontSizeToFitWidth)

A Boolean value that determines whether the label reduces the text’s font size to fit the title string into the label’s bounding rectangle.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)