---
title: widthTracksTextView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextcontainer/widthtrackstextview
---

# widthTracksTextView

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

## Declaration

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

## Discussion

Discussion When the value of this property is true, the text container adjusts its width when the width of its text view changes. The default value of this property is false. For more information about size tracking, see Text System Storage Layer Overview.

## See Also

### Related Documentation

- [containerSize](appkit/nstextcontainer/containersize.md)

### Defining the container shape

- [size](uikit/nstextcontainer/size.md)
- [exclusionPaths](uikit/nstextcontainer/exclusionpaths.md)
- [lineBreakMode](uikit/nstextcontainer/linebreakmode.md)
- [heightTracksTextView](uikit/nstextcontainer/heighttrackstextview.md)
