<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/SwiftUIAttributes/StrikethroughStyleAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO7SwiftUIE0D12UIAttributesV018StrikethroughStyleB0O"
  },
  "title" : "AttributeScopes.SwiftUIAttributes.StrikethroughStyleAttribute"
}
-->

# AttributeScopes.SwiftUIAttributes.StrikethroughStyleAttribute

A key for the line drawn through a run of attributed text.

```
@frozen enum StrikethroughStyleAttribute
```

## Overview

Set this key to mark text as no longer current, such as a completed item
or a superseded price. The value carries both the pattern and the color
of the line:

```
var price = AttributedString("$24.00")
price.strikethroughStyle = .single

Text(price)
```

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

[`EncodableAttributedStringKey`](/documentation/Foundation/EncodableAttributedStringKey)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`AttributedStringKey`](/documentation/Foundation/AttributedStringKey)

[`DecodableAttributedStringKey`](/documentation/Foundation/DecodableAttributedStringKey)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)