Contents

accessibilityIdentifier(_:)

Uses the string you specify to identify the view.

Declaration

nonisolated func accessibilityIdentifier(_ identifier: String) -> ModifiedContent<Self, AccessibilityAttachmentModifier>

Discussion

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

See Also

Identifying elements