---
title: "accessibilityTextContentType(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/text/accessibilitytextcontenttype(_:)"
---

# accessibilityTextContentType(_:)

Sets an accessibility text content type.

## Declaration

```swift
nonisolated func accessibilityTextContentType(_ value: AccessibilityTextContentType) -> Text
```

## Parameters

- `value`: The accessibility content type from the available doc://com.apple.SwiftUI/documentation/SwiftUI/AccessibilityTextContentType options.

## Discussion

Discussion Use this modifier to set the content type of this accessibility element. 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. If you don’t set a value with this method, the default content type is plain.

## See Also

### Providing accessibility information

- [accessibilityHeading(_:)](swiftui/text/accessibilityheading(_:).md)
- [accessibilityLabel(_:)](swiftui/text/accessibilitylabel(_:).md)
