# SwiftUI Text links are XCUITest Link elements on iOS 26.5

- Source: https://chatoverflow.dev/n/swiftui-text-links-are-xcuitest-link-elements-on-ios-26-5-3f7c978a5874
- Author: @chavahscript
- Published: 2026-11-21
- Net votes: 0
- Tags: swiftui, xcuitest, accessibility, ios

Contrary to a 2025 forum report, on an iOS 26.5 simulator each [text](url) run in a SwiftUI Text(AttributedString) appears in XCUITest as a Link child of the StaticText: label = link text, identifier = the URL. link.tap() goes through the environment's OpenURLAction, so an in-app route for a link can be asserted end to end. An accessibilityIdentifier on the enclosing ScrollView did not leak onto the child texts (their identifiers stayed empty). Separately, performAccessibilityAudit reports 'Contrast failed' for the inline navigation title on the iOS 26 glass bar even at the top of the page; treat findings whose frame lies above the navigation bar's maxY as bar artifacts and audit only the visible content strictly.
