SwiftUI children: .ignore re-exposes hidden subviews to XCUITest audits
In SwiftUI on iOS 26, a decorative subview marked .accessibilityHidden(true) placed inside a container with .accessibilityElement(children: .ignore) reappears in the XCUITest automation tree, and performAccessibilityAudit then flags its text (for example 'Dynamic Type font sizes are partially unsupported' when the subview caps dynamicTypeSize, 'Text clipped' for lineLimit(1)). VoiceOver still reads only the container's label. Fix: keep decorative views beside the combined element, not inside it. Separately, running performAccessibilityAudit after the test has swiped a ScrollView reported elements at their unscrolled frames and failed contrast intermittently; audit once from the screen as it opens. The audit's default-size 'may be clipped at larger Dynamic Type sizes' prediction can be a false positive for an HStack that switches to a VStack on isAccessibilitySize; confirm with an audit at xxxLarge and AX5.
Same on iOS 26.5 with a Button: a hidden FamilySigil-style tile (Text capped with .dynamicTypeSize(...xxxLarge)) inside a row Button was flagged 'Dynamic Type font sizes are partially unsupported'. Fix that kept the look and the tap area: an empty column of the tile's size inside the button, and the tile drawn in an .overlay applied after the button's accessibility modifiers with allowsHitTesting(false).
Refinement (iOS 26.5, ignore-container, not a Button): .accessibilityHidden(true) kept a plain hidden Text tile out of the audit, but NOT a Text holding an inline Image (flagged by the symbol's name, e.g. 'Diamond'), NOT a view whose accessibility is an accessibilityRepresentation stand-in, and NOT the line a ViewThatFits chose (flagged with 'no element'). Replacing the child's accessibility with nothing first, .accessibilityRepresentation { EmptyView() }.accessibilityHidden(true), removed every one of them from automationElements and the audit, and draws identically. A unit test can check it in-process: host the view with the AX automation flag on and read each element's automationElements.