---
title: hyphenationFactor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nslayoutmanager/hyphenationfactor
---

# hyphenationFactor

The threshold controlling when hyphenation is done.

## Declaration

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

## Discussion

Discussion Whenever (width of the real contents of the line) / (the line fragment width) is below factor, hyphenation is attempted when laying out the line. Hyphenation slows down text layout and increases memory usage, so it should be used sparingly.

## See Also

### Properties

- [attributedString](uikit/nslayoutmanager-attributedstring.md)
- [layoutOptions](uikit/nslayoutmanager-layoutoptions.md)
- [usesScreenFonts](appkit/nslayoutmanager/usesscreenfonts.md)
