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

# accessibilityIdentifier(_:isEnabled:)

Uses the string you specify to identify the view. Use this value for testing. It isn’t visible to the user.

## Declaration

```swift
nonisolated func accessibilityIdentifier(_ identifier: String, isEnabled: Bool = true) -> some TabContent<Self.TabValue>

```

## Parameters

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

## See Also

### Configuring tab accessibility

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