---
title: primaryTextLayoutManager
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextcontentmanager/primarytextlayoutmanager
---

# primaryTextLayoutManager

The primary text layout manager for this content.

## Declaration

```swift
var primaryTextLayoutManager: NSTextLayoutManager? { get set }
```

## Discussion

Discussion Setting this property to an NSTextLayoutManager not in textLayoutManagers resets it to nil. It automatically synchronizes pending edits before switching to a new primary object. The operation is synchronous. This property is KVO-compliant.

## See Also

### Working with layout managers

- [textLayoutManagers](uikit/nstextcontentmanager/textlayoutmanagers.md)
- [automaticallySynchronizesTextLayoutManagers](uikit/nstextcontentmanager/automaticallysynchronizestextlayoutmanagers.md)
- [addTextLayoutManager(_:)](uikit/nstextcontentmanager/addtextlayoutmanager(_:).md)
- [removeTextLayoutManager(_:)](uikit/nstextcontentmanager/removetextlayoutmanager(_:).md)
- [synchronizeTextLayoutManagers(_:)](uikit/nstextcontentmanager/synchronizetextlayoutmanagers(_:).md)
