---
title: text
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sklabelnode/text
---

# text

The string that the label node displays.

## Declaration

```swift
var text: String? { get set }
```

## Mentioned in

Adding Text to a Scene

## Discussion

Discussion This property is ignored if attributedText is defined.

## See Also

### Setting a Label’s Text

- [attributedText](spritekit/sklabelnode/attributedtext.md)
