<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKLabelNode/attributedText",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKLabelNode(py)attributedText"
  },
  "title" : "attributedText"
}
-->

# attributedText

The attributed string displayed by the label.

```
@NSCopying var attributedText: NSAttributedString? { get set }
```

## Discussion

The following properties are ignored if attributedText is defined:

|text     |The label favors the attributed string.                |
|---------|-------------------------------------------------------|
|fontColor|Font color is defined by tags in the attributed string.|
|fontSize |Font size is defined by tags in the attributed string. |

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)