---
title: "accessibilityCustomContent(_:_:importance:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/modifiedcontent/accessibilitycustomcontent(_:_:importance:)"
---

# accessibilityCustomContent(_:_:importance:)

Add additional accessibility information to the view.

## Declaration

```swift
nonisolated func accessibilityCustomContent(_ key: AccessibilityCustomContentKey, _ value: Text?, importance: AXCustomContent.Importance = .default) -> ModifiedContent<Content, Modifier>
```

## Parameters

- `key`: Key used to specify the identifier and label of the of the additional accessibility information entry.
- `value`: Text value for the additional accessibility information. For example: “landscape.” A value of nil will remove any entry of additional information added earlier for any key with the same identifier.

## Discussion

Discussion Use this method to add information you want accessibility users to be able to access about this element, beyond the basics of label, value, and hint. For example, accessibilityCustomContent can be used to add information about the orientation of a photograph, or the number of people found in the picture. note: Repeated calls of accessibilityCustomContent with keys having different identifiers will create new entries of additional information. Calling accessibilityCustomContent repeatedly with keys having matching identifiers will replace the previous entry.
