---
title: truncatesLastVisibleLine
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/nsstringdrawingoptions/truncateslastvisibleline
---

# truncatesLastVisibleLine

Truncates and adds the ellipsis character to the last visible line if the text doesn’t fit into the specified bounds.

## Declaration

```swift
static var truncatesLastVisibleLine: NSStringDrawingOptions { get }
```

## Discussion

Discussion This option is ignored if NSStringDrawingUsesLineFragmentOrigin is not also set. In addition, the line break mode must be either NSLineBreakByWordWrapping or NSLineBreakByCharWrapping for this option to take effect. The line break mode can be specified in a paragraph style passed in the attributes dictionary argument of the drawing methods.

## See Also

### Constants

- [usesLineFragmentOrigin](uikit/nsstringdrawingoptions/useslinefragmentorigin.md)
- [usesFontLeading](uikit/nsstringdrawingoptions/usesfontleading.md)
- [usesDeviceMetrics](uikit/nsstringdrawingoptions/usesdevicemetrics.md)
