<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSLayoutManager/textStorage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(py)textStorage"
  },
  "title" : "textStorage"
}
-->

# textStorage

The text storage object that contains the content to lay out.

```
unowned(unsafe) var textStorage: NSTextStorage? { get set }
```

## See Also

[`func addLayoutManager(NSLayoutManager)`](/documentation/UIKit/NSTextStorage/addLayoutManager(_:))

Adds a layout manager to the text storage object’s set of layout managers.



---

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)