<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNewsFormat",
  "identifier" : "/documentation/AppleNewsFormat/TextDecoration",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:TextDecoration"
  },
  "title" : "TextDecoration"
}
-->

# TextDecoration

The object for defining color for text underline or strikethrough.

```
object TextDecoration
```

## Discussion

Use the `TextDecoration` object to define a stroke for strikethrough or underline.

You can use this object in [`TextStyle`](/documentation/AppleNewsFormat/TextStyle) and [`ComponentTextStyle`](/documentation/AppleNewsFormat/ComponentTextStyle).

### Example

```json
{
  "componentTextStyles": {
    "exampleStyle": {
      …
      "strikethrough": {
        "color": "#FFC800"
      },
      "underline": {
        "color": "#FFC800"
      }
    }
  }
}
```

---

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)