---
title: lineBreakStrategy
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextfield/linebreakstrategy
---

# lineBreakStrategy

The strategy that the system uses to break lines when laying out multiple lines of text.

## Declaration

```swift
var lineBreakStrategy: NSParagraphStyle.LineBreakStrategy { get set }
```

## Discussion

Discussion The default value for editable text fields is NSLineBreakStrategyNone to match the field editor’s behavior. The default value for selectable, uneditable text fields is standard. note: When the text field has an attributed string value, the system ignores the textColor, font, alignment, lineBreakMode, and lineBreakStrategy properties. Set the foregroundColor, font, alignment, lineBreakMode, and lineBreakStrategy properties in the attributed string instead.

## See Also

### Configuring Line Wrapping

- [allowsDefaultTighteningForTruncation](appkit/nstextfield/allowsdefaulttighteningfortruncation.md)
- [maximumNumberOfLines](appkit/nstextfield/maximumnumberoflines.md)
