---
title: textSize
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scntext/textsize
---

# textSize

The two-dimensional extent of the text after layout.

## Declaration

```swift
var textSize: CGSize { get }
```

## Discussion

Discussion This property reports the size of the smallest bounding rectangle containing the text. This size does not necessarily match that of the layout rectangle specified by the containerFrame property. A long body of text may overflow the layout rectangle, depending on the values of the isWrapped and truncationMode properties, and a short string of text may fit in an area smaller than the layout rectangle.

## See Also

### Managing Text Layout

- [containerFrame](scenekit/scntext/containerframe.md)
- [isWrapped](scenekit/scntext/iswrapped.md)
- [alignmentMode](scenekit/scntext/alignmentmode.md)
- [truncationMode](scenekit/scntext/truncationmode.md)
