---
title: hyphenationFactor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstypesetter/hyphenationfactor
---

# hyphenationFactor

Returns the current hyphenation factor.

## Declaration

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

## Return Value

Return Value The hyphenation factor, a value ranging from 0.0 to 1.0 that controls when hyphenation is attempted. By default, the value is 0.0, meaning hyphenation is off. A factor of 1.0 causes hyphenation to be attempted always.

## See Also

### Accessing the layout manager

- [layoutManager](appkit/nstypesetter/layoutmanager.md)
- [usesFontLeading](appkit/nstypesetter/usesfontleading.md)
- [typesetterBehavior](appkit/nstypesetter/typesetterbehavior.md)
