<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TabContent/accessibilityInputLabels(_:isEnabled:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI10TabContentPAAE24accessibilityInputLabels_9isEnabledQrSayAA18LocalizedStringKeyVG_SbtF::OverloadGroup"
  },
  "title" : "accessibilityInputLabels(_:isEnabled:)"
}
-->

# accessibilityInputLabels(_:isEnabled:)

Sets alternate input labels with which users identify a tab.

```
nonisolated func accessibilityInputLabels(_ inputLabelKeys: [LocalizedStringKey], isEnabled: Bool = true) -> some TabContent<Self.TabValue>
```

## Parameters

`inputLabelKeys`

The accessibility input labels to apply.

`isEnabled`

If true the accessibility input labels are applied;
otherwise the accessibility input labels are unchanged.

## 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 tab using the accessibility label that you add with the
> `accessibilityLabel()` modifier.

```
var body: some View {
    TabView {
        Tab {
            MessagesView()
        } label: {
            Image(systemName: "mail")
        }
        .accessibilityInputLabels(["Messages", "Mail", "Conversations"])
    }
}
```

---

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)