accessibilityIdentifier(_:)
Uses the string you specify to identify the view.
Declaration
nonisolated func accessibilityIdentifier(_ identifier: String) -> ModifiedContent<Content, Modifier>Discussion
Use this value for testing. It isn’t visible to the user.