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

# hyphenationFactor

The paragraph’s threshold for hyphenation.

## Declaration

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

## Discussion

Discussion Valid values lie between 0.0 and 1.0 inclusive. The default value is 0.0. Hyphenation is attempted when the ratio of the text width (as broken without hyphenation) to the width of the line fragment is less than the hyphenation factor. When the paragraph’s hyphenation factor is 0.0, the layout manager’s hyphenation factor is used instead. When both are 0.0, hyphenation is disabled. This property detects the user-selected language by examining the first item in preferredLanguages.

## See Also

### Related Documentation

- [kCTLanguageAttributeName](coretext/kctlanguageattributename.md)

### Setting line-break information

- [lineBreakMode](uikit/nsmutableparagraphstyle/linebreakmode.md)
- [lineBreakStrategy](uikit/nsmutableparagraphstyle/linebreakstrategy.md)
- [usesDefaultHyphenation](uikit/nsmutableparagraphstyle/usesdefaulthyphenation.md)
- [tighteningFactorForTruncation](appkit/nsmutableparagraphstyle/tighteningfactorfortruncation.md)
- [allowsDefaultTighteningForTruncation](uikit/nsmutableparagraphstyle/allowsdefaulttighteningfortruncation.md)
