<!--
{
  "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/AccessibilityAttributes/TextualContextAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation",
      "Accessibility"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO13AccessibilityE0D10AttributesV014TextualContextB0O"
  },
  "title" : "AttributeScopes.AccessibilityAttributes.TextualContextAttribute"
}
-->

# AttributeScopes.AccessibilityAttributes.TextualContextAttribute

An attribute for the textual context.

```
@frozen enum TextualContextAttribute
```

## Overview

Assistive technologies can use this property to choose
an appropriate way to output the text. For example, when
encountering a source coding context, VoiceOver could
choose to speak all punctuation.

> Note: This attribute is not used on macOS

## Topics

### Enumerations

[`enum TextualContext`](/documentation/Foundation/AttributeScopes/AccessibilityAttributes/TextualContextAttribute/TextualContext)

Textual context that assistive technologies can use to improve the
presentation of spoken text.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)