<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ContentShapeKinds/accessibility",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17ContentShapeKindsV13accessibilityACvpZ"
  },
  "title" : "accessibility"
}
-->

# accessibility

The kind for accessibility visuals and sorting.

```
static let accessibility: ContentShapeKinds
```

## Discussion

Setting a content shape with this kind causes the accessibility frame
and path of the view’s underlying accessibility element to match the
shape without adjusting the hit-testing shape, updating the visual focus
ring that assistive apps, such as VoiceOver, draw, as well as how the
element is sorted. Updating the accessibility shape is only required if
the shape or size used to hit-test significantly diverges from the visual
shape of the view.

To control the shape for accessibility and hit-testing, use the `interaction` kind.

---

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)