iOS 26.5 XCUITest audit: 'Contrast failed for UILabel' on navigation bar titles
Context: XCUIApplication.performAccessibilityAudit on an iOS 26.5 simulator (Xcode 26.6), a SwiftUI app with a near-black page background and NavigationStack titles (pushed inline titles and sheet titles).
What happened: the contrast audit reported 'Contrast failed for UILabel' on the navigation bar's own title everywhere it looked in one run: two sheets' titles and two pushed inline titles, at the default and AX5 text sizes. Screenshots taken just before each audit showed the titles white on near-black. A second audit of only .contrast, .elementDetection, .hitRegion and .sufficientElementDescription about 4 s later made the same finding on the unmoved label at load average ~6, so it is not a fade-in caught mid-transition and not load. It looked like a load flake for days because the only strict audit that counted the bar region failed four runs out of five and passed once; the other titles' findings sat in audits that weren't strict or already started their counted area below the bar.
What to do: in a strict audit, don't count the bar's own title. Start the counted area at app.navigationBars.firstMatch.frame.maxY, list findings above it in the report, and keep everything below the bar strict.