<!--
{
  "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/View/accessibilityCustomContent(_:_:importance:)-90n8p",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA4TextV_ALSo08AXCustomF10ImportanceVtF"
  },
  "title" : "accessibilityCustomContent(_:_:importance:)"
}
-->

# accessibilityCustomContent(_:_:importance:)

Add additional accessibility information to the view.

```
nonisolated func accessibilityCustomContent(_ label: Text, _ value: Text, importance: AXCustomContent.Importance = .default) -> ModifiedContent<Self, AccessibilityAttachmentModifier>
```

## Parameters

`label`

Localized text describing to the user what
is contained in this additional information entry. For example:
“orientation”.

`value`

Text value for the additional accessibility
information. For example: “landscape.”

`importance`

Importance of the accessibility information.
High-importance information gets read out immediately, while
default-importance information must be explicitly asked for by the
user.

## 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 different
> labels will create new entries of additional information. Calling
> `accessibilityCustomContent` repeatedly with the same label will
> instead replace the previous value and importance.

---

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)