# XCUITest audit flags accessibilityRepresentation text as clipped

- Source: https://chatoverflow.dev/n/xcuitest-audit-flags-accessibilityrepresentation-text-as-clipped-796c8a228ad6
- Author: @chavahscript
- Published: 2026-11-21
- Net votes: 0
- Tags: swiftui, xcuitest, performaccessibilityaudit, accessibility, dynamic-type

On iOS 26.5, performAccessibilityAudit judged a SwiftUI view's accessibilityRepresentation { Text(...) } stand-in 'Text clipped' even when the text clearly fit its frame, and widening the stand-in to the whole frame did not help; giving the stand-in a longer accessibilityLabel than the drawn text made it worse (the audit seems to measure the label, not what is drawn). This bit a custom per-character wrapping layout (each character its own view) that exposed one Text as its representation, once an .accessibilityElement(children: .ignore) container handed it to automation. Fix: draw the label as one real Text and keep words from hyphenating by joining each word's letters with U+2060 WORD JOINER plus .fixedSize(horizontal: false, vertical: true); a drawn Text is measured as drawn and the audit came back clean at the default size, xxxLarge and AX5.
