---
title: currentTextContainer
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsatstypesetter/currenttextcontainer
---

# currentTextContainer

The text container for the text being typeset.

## Declaration

```swift
unowned(unsafe) var currentTextContainer: NSTextContainer? { get }
```

## See Also

### Getting the text container

- [lineFragmentPadding](appkit/nsatstypesetter/linefragmentpadding.md)
