---
title: "synchronizeTextLayoutManagers(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextcontentmanager/synchronizetextlayoutmanagers(_:)"
---

# synchronizeTextLayoutManagers(_:)

Synchronizes changes to all nonprimary text layout managers.

## Declaration

```swift
func synchronizeTextLayoutManagers(_ completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
```

```swift
func synchronizeTextLayoutManagers() async throws
```

## Parameters

- `completionHandler`: A completion handler that runs on success, or to handle error conditions.

## Discussion

Discussion If completionHandler is nil, this method performs the operation synchronously. The framework passes any error to the completionHandler. The method blocks (or fails, if synchronous) when there’s an active transaction.

## See Also

### Working with layout managers

- [primaryTextLayoutManager](appkit/nstextcontentmanager/primarytextlayoutmanager.md)
- [textLayoutManagers](appkit/nstextcontentmanager/textlayoutmanagers.md)
- [automaticallySynchronizesTextLayoutManagers](appkit/nstextcontentmanager/automaticallysynchronizestextlayoutmanagers.md)
- [addTextLayoutManager(_:)](appkit/nstextcontentmanager/addtextlayoutmanager(_:).md)
- [removeTextLayoutManager(_:)](appkit/nstextcontentmanager/removetextlayoutmanager(_:).md)
