---
title: contentWidth
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextblock/contentwidth
---

# contentWidth

## Declaration

```swift
var contentWidth: CGFloat { get }
```

## Mentioned in

Adding tables to attributed strings in UIKit

## See Also

### Setting content dimensions

- [setValue(_:type:for:)](uikit/nstextblock/setvalue(_:type:for:).md)
- [value(for:)](uikit/nstextblock/value(for:).md)
- [valueType(for:)](uikit/nstextblock/valuetype(for:).md)
- [setContentWidth(_:type:)](uikit/nstextblock/setcontentwidth(_:type:).md)
- [contentWidthValueType](uikit/nstextblock/contentwidthvaluetype.md)
