iOS 26: `_UIFloatingBarContainerView` marks sheet content (and sometimes whole screens) as covered
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- swift, typescript
Rechercherichtung
Start with the coverage pass that marks toolbar nodes as overlays, and the full-window exemption it applies, then check how snapshot -i filters window nodes before that exemption runs. Reproduce with a SwiftUI sheet containing a List of Buttons on an iOS 26 simulator, comparing snapshot --raw --json with press. Done when rows in a sheet are pressable by ref, label and identifier, and snapshot -i agrees with what press decides.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Environment
- agent-device 0.21.19
- iOS 27.0 simulator (iPhone, 402×874 pt); the floating bar container exists since iOS 26
- SwiftUI app with a
NavigationStackand a.sheetwith.presentationDetents([.medium, .large])
Summary
On iOS 26, UIKit adds a floating bar container (_UIFloatingBarContainerView) to every navigation context. XCUITest reports it with type Toolbar and label Toolbar. agent-device's coverage pass treats every toolbar node as an overlay. The full-window exemption only applies when the bar's rect equals the nearest window rect.
So:
- In a sheet the container has the sheet's frame (for example
x8 y415 w386 h451), not the window frame. It comes later in tree order than the sheet rows, so every row is markedcovered.press @ref,press 'label="…"', andpress 'id="…"'all fail withcovered by another visible element. The rows are hittable in the app; a coordinate tap at their centre works. - On a full-screen view the container has the window frame and is exempt in the full snapshot. In
snapshot -ithe window node is filtered out, so the exemption cannot apply, and every node prints[covered]even though presses work.
The container has no interactive children of its own in these cases.
Steps to reproduce
- Present a SwiftUI sheet containing a
ListofButtonrows on an iOS 26 simulator. agent-device snapshot -i→ all rows[covered].agent-device press 'id="<row identifier>"'→covered by another visible element.agent-device snapshot --raw --jsonshows aToolbarnode (_UIFloatingBarContainerView) after the rows, with the sheet's rect.agent-device press <centre x> <centre y>→ the row activates.
Expected
Rows inside the sheet are pressable by ref, label, and identifier.
Suggested fix
Any one of:
- Do not treat
_UIFloatingBarContainerView(or atoolbarwith no interactive descendants) as an overlay. - Exempt a bar whose rect equals its nearest sheet/scene container rect, not only the window.
- Apply the full-window exemption before
-ifiltering, sosnapshot -imatches whatpressdecides.
Related (separate issue?)
A SwiftUI Menu prints as [popupbutton] with an unlabeled child [button] that nearly fills it. press on the popup button fails with has no parent-owned touch point outside its interactive descendants, because no point is ≥12 pt from the child. Treating a child whose rect is within a few points of the parent as the same target (or pressing the child automatically when it is the only competitor) would make SwiftUI menus pressable by label or identifier.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 5k
- Forks
- 334
- Ø Merge
- 12 Std. 29 Min.
- Gemergte PRs (30 T.)
- 663
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus callstack/agent-device
-
bug ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
callstack/agent-device#3627 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
callstack/agent-device#1869 ·
Maintainer antworten meist innerhalb von 1 Tag
-
A session lost to a daemon takeover ("Replacing daemon … unreachable") answers the next request with AMBIGUOUS_MATCH when two simulators are bootedEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug ready-for-agent
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
callstack/agent-device#3674 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement ready-for-agent
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
callstack/agent-device#3531 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 1-2 Tage Anfängerfreundlichkeit 55/100
callstack/agent-device#3449 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in callstack/agent-device
Ähnliche Issues
-
Add: Yemen Education SDOffenstreams:add
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
apache/rocketmq-dashboard#6872 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
interledger/publisher-tools#931 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
ARTPARK-SAHAI-ORG/calibrate-frontend#727 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
fab-geocommuns/RNB-site#539 ·
Maintainer antworten meist innerhalb von 2 Tagen