<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/layoutManager",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(py)layoutManager"
  },
  "title" : "layoutManager"
}
-->

# layoutManager

The layout manager that lays out text for the receiver’s text container.

```
unowned(unsafe) var layoutManager: NSLayoutManager? { get }
```

## See Also

[`layoutManager`](/documentation/AppKit/NSTextContainer/layoutManager)

The text container’s layout manager.

[`replaceLayoutManager(_:)`](/documentation/AppKit/NSTextContainer/replaceLayoutManager(_:))

Replaces the layout manager for the group of text system objects that contains the text container.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)