---
title: heightTracksTextView
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextcontainer/heighttrackstextview
---

# heightTracksTextView

A Boolean that controls whether the text container adjusts the height of its bounding rectangle when its text view resizes.

## Declaration

```swift
var heightTracksTextView: Bool { get set }
```

## Discussion

Discussion When the value of this property is true, the text container adjusts its height when the height of its text view changes. The default value of this property is false. For more information, see NSTextContainer.

## See Also

### Defining the container shape

- [size](appkit/nstextcontainer/size.md)
- [exclusionPaths](appkit/nstextcontainer/exclusionpaths.md)
- [lineBreakMode](appkit/nstextcontainer/linebreakmode.md)
- [widthTracksTextView](appkit/nstextcontainer/widthtrackstextview.md)
