<!--
{
  "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/accessibilityRotorEntry(id:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE23accessibilityRotorEntry2id2inQrqd___AA9NamespaceV2IDVtSHRd__lF"
  },
  "title" : "accessibilityRotorEntry(id:in:)"
}
-->

# accessibilityRotorEntry(id:in:)

Defines an explicit identifier tying an Accessibility element for this
view to an entry in an Accessibility Rotor.

```
nonisolated func accessibilityRotorEntry<ID>(id: ID, in namespace: Namespace.ID) -> some View where ID : Hashable
```

## Parameters

`id`

An arbitrary hashable identifier. Pass this same value
when initializing an AccessibilityRotorEntry.

`namespace`

A namespace created with `@Namespace()`. Pass this
same namespace when initializing an `AccessibilityRotorEntry`.

## Discussion

Use this when creating an AccessibilityRotorEntry without a namespace
does not allow SwiftUI to automatically find and reveal the element,
or when the Rotor entry should be associated with a sub-element of
a complex view generated in a ForEach, for example.

---

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)