---
title: "accessibility(identifier:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/modifiedcontent/accessibility(identifier:)"
---

# accessibility(identifier:)

Uses the specified string to identify the view.

## Declaration

```swift
nonisolated func accessibility(identifier: String) -> ModifiedContent<Content, Modifier>
```

## Discussion

Discussion Use this value for testing. It isn’t visible to the user.
