Contents

lineBreakStrategy

The strategies that the text system may use to break lines while laying out the paragraph.

Declaration

var lineBreakStrategy: NSParagraphStyle.LineBreakStrategy { get set }

Discussion

Line-break strategies are collections of options the system uses to determine where to break lines in a paragraph. This is different from lineBreakMode, which controls how to lay out lines of text that don’t fit in a container. The system ignores this property if the paragraph style’s lineBreakMode property specifies a mode that doesn’t support multiple lines, such as NSLineBreakMode.byClipping.

The default value is NSLineBreakStrategyNone.

See Also

Setting line-break information