---
title: textStorage
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nslayoutmanager/textstorage
---

# textStorage

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

## Declaration

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

## See Also

### Related Documentation

- [addLayoutManager(_:)](uikit/nstextstorage/addlayoutmanager(_:).md)

### Accessing the text storage

- [replaceTextStorage(_:)](appkit/nslayoutmanager/replacetextstorage(_:).md)
