Repository navigation
Closed
Labels
bugSomething isn't working
Description
Purpose
On iOS 27, the snapshot occlusion check marks controls [covered] that XCTest reports hittable, and it refuses press @ref and find text … click even though a coordinate press at the same point works. An external user's simulator stack reported this on agent-device 0.21.36 with an iOS 27.2 iPhone 18 Pro simulator. It reproduces on main (eec35e9) on an iOS 27.0 iPhone 18 Pro simulator.
- Contacts > New Contact, after typing a first name:
press @e6(Done) fails withCOMMAND_FAILED: Ref @e6 is covered by another visible element. The hint namestoolbar "Toolbar" at (0, 62 402x812)insnapshot -i, andtoolbar "Toolbar" at (0, 83 402x48)in the full projection. - Settings > General:
snapshot -imarks every row covered.press @e8andfind text Aboutboth fail withCovered by the toolbar "Toolbar" at (0, 0 402x874).
Causes
- Contacts: the sheet's
_UIFloatingBarContainerView(0,62 402x812) encloses its own navigation bar and table. Before it is listed a bar-heightCNPassthroughToolbar(0,83 402x48) that encloses nothing. The toolbar-host reach treats any earlier toolbar sibling as the previous presentation's host, so the sheet's own content is classified as "beneath" and covered. - Contacts: that passthrough toolbar is drawn inside the sheet's navigation bar and backs it, but it covers Done.
- Settings: the iOS interactive projection drops the SwiftUI app root, because
collectIosActionWrapperSuppressionreads the full-screen app node "Settings" as a wrapper of the "Settings" back button. Without a viewport root, the full-screen toolbar exemption does not apply.
Required behavior
- A toolbar sibling counts as the previous presentation's host only if it encloses a bar or scroll container.
- A toolbar inside the navigation bar that holds the target does not cover the target.
- The interactive projection never suppresses the application/window root as an action wrapper.
- Genuine covers keep covering: a sheet presented over the target, a toolbar that extends past the navigation bar, and a confirmation menu over a row.
Completion conditions
- Regression fixtures captured from both screens fail on
mainand pass with the fix. - On an iOS 27 simulator,
snapshot -ishows no[covered]on these screens, andpress @refandfind text Aboutdispatch. - Each new exemption has a negative test for the closest real cover.
Dependencies
None. Builds on the toolbar-host exemptions from #3097 and #3162.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
apex-sentinel-staging commentedon Nov 12, 2026
Apex Sentinel · Issue review
Suggested label:
bugThe report describes existing interactive snapshot behavior incorrectly marking hittable controls as covered on iOS 27, with repro commands, error messages, and specific suspected causes. It provides concrete reproduction and completion conditions a maintainer could use.
Required sections
fix(snapshot): stop iOS 27 system toolbars from covering their own co…