---
title: text
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/textcomponent/text
---

# text

The attributed string this component renders.

## Declaration

```swift
var text: AttributedString?
```

## Discussion

Discussion RealityKit renders text centered vertically. Neither the length of the string nor the specified attributes affect the size of the canvas mesh. All attributes are supported except for TextAlignment and StrikethroughStyle.
