<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.2.0",
    "iPadOS: 13.0.0 - 27.2.0",
    "macCatalyst: 13.0.0 - 27.2.0",
    "macOS: 10.15.0 - 27.2.0",
    "tvOS: 13.0.0 - 27.2.0",
    "visionOS: 1.0.0 - 27.2.0",
    "watchOS: 6.0.0 - 27.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/accessibility(inputLabels:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE13accessibility11inputLabelsAA15ModifiedContentVyxAA31AccessibilityAttachmentModifierVGSayAA4TextVG_tF"
  },
  "title" : "accessibility(inputLabels:)"
}
-->

# accessibility(inputLabels:)

Sets alternate input labels with which users identify a view.

```
nonisolated func accessibility(inputLabels: [Text]) -> ModifiedContent<Self, AccessibilityAttachmentModifier>
```

## Parameters

`inputLabels`

An array of [`Text`](/documentation/SwiftUI/Text) elements to use as input labels.

## Discussion

Provide labels in descending order of importance. Voice Control
and Full Keyboard Access use the input labels.

> Note: If you don’t specify any input labels, the user can still
> refer to the view using the accessibility label that you add with the
> ``doc://com.apple.SwiftUI/documentation/SwiftUI/View/accessibility(label:)`` modifier.

---

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)