<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/accessibilityCustomContent(_:_:importance:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE26accessibilityCustomContent__10importanceAA08ModifiedF0VyxAA31AccessibilityAttachmentModifierVGAA0ieF3KeyV_10Foundation23LocalizedStringResourceVSo08AXCustomF10ImportanceVtF::OverloadGroup"
  },
  "title" : "accessibilityCustomContent(_:_:importance:)"
}
-->

# accessibilityCustomContent(_:_:importance:)

Add additional accessibility information to the view.

```
@export(implementation) nonisolated func accessibilityCustomContent(_ key: AccessibilityCustomContentKey, _ valueResource: LocalizedStringResource, importance: AXCustomContent.Importance = .default) -> ModifiedContent<Self, AccessibilityAttachmentModifier>
```

## Parameters

`key`

Key used to specify the identifier and label of the
of the additional accessibility information entry.

`valueResource`

Text resource for the additional
accessibility information. For example: “landscape.” A value of `nil`
will remove any entry of additional information added earlier for any
`key` withthe same identifier.

`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 `key`s
> having different identifiers will create new entries of
> additional information.
> Calling `accessibilityCustomContent` repeatedly with `key`s
> having matching identifiers will replace the previous entry.

---

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)