---
title: "accessibilityValue(_:isEnabled:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/tabcontent/accessibilityvalue(_:isenabled:)"
---

# accessibilityValue(_:isEnabled:)

Adds a textual description of the value that the tab contains.

## Declaration

```swift
nonisolated func accessibilityValue(_ valueDescription: Text, isEnabled: Bool = true) -> some TabContent<Self.TabValue>

```

## Parameters

- `valueDescription`: The accessibility value to apply.
- `isEnabled`: If true the accessibility value is applied; otherwise the accessibility value is unchanged.

## Discussion

Discussion Use this method to describe the value represented by a tab, but only if that’s different than the tab’s label such as when an icon represent information about a tab. var body: some View {     TabView {         Tab {             MessagesView()         } label: {             Text("Messages")         }         .badge(30)         .accessibilityValue("30 Unread")     } }

## See Also

### Configuring tab accessibility

- [accessibilityHint(_:isEnabled:)](swiftui/tabcontent/accessibilityhint(_:isenabled:).md)
- [accessibilityIdentifier(_:isEnabled:)](swiftui/tabcontent/accessibilityidentifier(_:isenabled:).md)
- [accessibilityInputLabels(_:isEnabled:)](swiftui/tabcontent/accessibilityinputlabels(_:isenabled:).md)
- [accessibilityLabel(_:isEnabled:)](swiftui/tabcontent/accessibilitylabel(_:isenabled:).md)
