<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accessibility",
  "identifier" : "/documentation/Accessibility/AXCustomContent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Accessibility"
    ],
    "preciseIdentifier" : "c:objc(cs)AXCustomContent"
  },
  "title" : "AXCustomContent"
}
-->

# AXCustomContent

Objects that define custom content and the timing of its output.

```
class AXCustomContent
```

## Overview

An `AXCustomContent` object contains the accessibility strings for the labels you
apply to your accessibility content. Combine them with the [`AXCustomContentProvider`](/documentation/Accessibility/AXCustomContentProvider)
protocol to allow your users to experience the content in a more appropriate manner
for each assistive technology.

## Topics

### Creating custom content

[`init(attributedLabel:attributedValue:)`](/documentation/Accessibility/AXCustomContent/init(attributedLabel:attributedValue:))

Creates new custom content with an attributed string and attributed value.

[`init(label:value:)`](/documentation/Accessibility/AXCustomContent/init(label:value:))

Creates new custom content with a label and value.

[`init(coder:)`](/documentation/Accessibility/AXCustomContent/init(coder:))

### Defining custom content

[`label`](/documentation/Accessibility/AXCustomContent/label)

A localized string that identifies the label for this content.

[`attributedLabel`](/documentation/Accessibility/AXCustomContent/attributedLabel)

A localized attributed string that identifies the label for this content.

[`value`](/documentation/Accessibility/AXCustomContent/value)

A localized string that provides a value for the label.

[`attributedValue`](/documentation/Accessibility/AXCustomContent/attributedValue)

A localized attributed string that provides a value for the label.

[`importance`](/documentation/Accessibility/AXCustomContent/importance-swift.property)

An object that determines when to output custom accessibility content.

[`AXCustomContent.Importance`](/documentation/Accessibility/AXCustomContent/Importance-swift.enum)

Objects that control the timing of content output.



---

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)