---
title: textContainer
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextview/textcontainer
---

# textContainer

The text container object that defines the area where text displays in the text view.

## Declaration

```swift
var textContainer: NSTextContainer { get }
```

## See Also

### Accessing TextKit Objects

- [textLayoutManager](uikit/uitextview/textlayoutmanager.md)
- [layoutManager](uikit/uitextview/layoutmanager.md)
- [textStorage](uikit/uitextview/textstorage.md)
