---
title: "accessibilityRotor(_:entries:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/accessibilityrotor(_:entries:)"
---

# accessibilityRotor(_:entries:)

Create an Accessibility Rotor with the specified user-visible label, and entries generated from the content closure.

## Declaration

```swift
nonisolated func accessibilityRotor<Content>(_ label: LocalizedStringResource, @ContentBuilder entries: @escaping () -> Content) -> some View where Content : AccessibilityRotorContent

```

## Parameters

- `label`: Localized label identifying this Rotor to the user.
- `entries`: Content used to generate Rotor entries. This can include AccessibilityRotorEntry structs, as well as constructs such as if and ForEach.

## Discussion

Discussion An Accessibility Rotor is a shortcut for Accessibility users to quickly navigate to specific elements of the user interface, and optionally specific ranges of text within those elements. In the following example, a Message application creates a Rotor allowing users to navigate to specifically the messages originating from VIPs. // `messages` is a list of `Identifiable` `Message`s.

ScrollView {     LazyVStack {         ForEach(messages) { message in             MessageView(message)         }     } } .accessibilityElement(children: .contain) .accessibilityRotor("VIPs") {     // Not all the MessageViews are generated at once, the model     // knows about all the messages.     ForEach(messages) { message in         // If the Message is from a VIP, make a Rotor entry for it.         if message.isVIP {             AccessibilityRotorEntry(message.subject, id: message.id)         }     } }

## See Also

### Working with rotors

- [accessibilityRotor(_:entries:entryID:entryLabel:)](swiftui/view/accessibilityrotor(_:entries:entryid:entrylabel:).md)
- [accessibilityRotor(_:entries:entryLabel:)](swiftui/view/accessibilityrotor(_:entries:entrylabel:).md)
- [accessibilityRotor(_:textRanges:)](swiftui/view/accessibilityrotor(_:textranges:).md)
