<!--
{
  "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" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/AccessibilityTextContentType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI28AccessibilityTextContentTypeV"
  },
  "title" : "AccessibilityTextContentType"
}
-->

# AccessibilityTextContentType

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

```
struct AccessibilityTextContentType
```

## Overview

Use an `AccessibilityTextContentType` value when setting the accessibility text content
type of a view using the [`accessibilityTextContentType(_:)`](/documentation/SwiftUI/View/accessibilityTextContentType(_:)) modifier.

## Topics

### Getting content types

[`console`](/documentation/SwiftUI/AccessibilityTextContentType/console)

A type that represents text used for input, like in the Terminal app.

[`fileSystem`](/documentation/SwiftUI/AccessibilityTextContentType/fileSystem)

A type that represents text used by a file browser, like in the Finder app in macOS.

[`messaging`](/documentation/SwiftUI/AccessibilityTextContentType/messaging)

A type that represents text used in a message, like in the Messages app.

[`narrative`](/documentation/SwiftUI/AccessibilityTextContentType/narrative)

A type that represents text used in a story or poem, like in the Books app.

[`plain`](/documentation/SwiftUI/AccessibilityTextContentType/plain)

A type that represents generic text that has no specific type.

[`sourceCode`](/documentation/SwiftUI/AccessibilityTextContentType/sourceCode)

A type that represents text used in source code, like in Swift Playgrounds.

[`spreadsheet`](/documentation/SwiftUI/AccessibilityTextContentType/spreadsheet)

A type that represents text used in a grid of data, like in the Numbers app.

[`wordProcessing`](/documentation/SwiftUI/AccessibilityTextContentType/wordProcessing)

A type that represents text used in a document, like in the Pages app.



---

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)