Title: SwiftUI.Tab accessibilityIdentifier is not surfaced on native tab targets · Issue #442 · getsentry/XcodeBuildMCP · GitHub
Open Graph Title: SwiftUI.Tab accessibilityIdentifier is not surfaced on native tab targets · Issue #442 · getsentry/XcodeBuildMCP
X Title: SwiftUI.Tab accessibilityIdentifier is not surfaced on native tab targets · Issue #442 · getsentry/XcodeBuildMCP
Description: Summary XcodeBuildMCP v2.6.1 fixed the important tab automation issue: native UITabBar items are now discoverable and tappable through snapshot-ui. I verified this with XcodeBuildMCP 2.6.2. There may still be a smaller SwiftUI identifier...
Open Graph Description: Summary XcodeBuildMCP v2.6.1 fixed the important tab automation issue: native UITabBar items are now discoverable and tappable through snapshot-ui. I verified this with XcodeBuildMCP 2.6.2. There m...
X Description: Summary XcodeBuildMCP v2.6.1 fixed the important tab automation issue: native UITabBar items are now discoverable and tappable through snapshot-ui. I verified this with XcodeBuildMCP 2.6.2. There m...
Opengraph URL: https://github.com/getsentry/XcodeBuildMCP/issues/442
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SwiftUI.Tab accessibilityIdentifier is not surfaced on native tab targets","articleBody":"## Summary\n\nXcodeBuildMCP v2.6.1 fixed the important tab automation issue: native `UITabBar` items are now discoverable and tappable through `snapshot-ui`. I verified this with XcodeBuildMCP 2.6.2.\n\nThere may still be a smaller SwiftUI identifier propagation issue: an `.accessibilityIdentifier(...)` applied to a `SwiftUI.Tab(...)` does not appear on the native tab target emitted by `snapshot-ui`.\n\nThis is not blocking automation, because agents can target tabs by `role=tab` plus visible label. I am filing this as a maybe-bug / enhancement request to clarify whether the identifier can be surfaced or whether this is expected SwiftUI/UIKit behavior.\n\n## Example SwiftUI shape\n\n```swift\nTabView(selection: $selectedTab) {\n SwiftUI.Tab(\"Wheels\", systemImage: \"arrow.trianglehead.2.clockwise\", value: Tab.wheels) {\n NavigationStack {\n WheelsView()\n }\n .accessibilityIdentifier(\"screen_wheels\")\n }\n .accessibilityLabel(\"Wheels\")\n .accessibilityIdentifier(\"tab_wheels\")\n}\n```\n\n## Observed `snapshot-ui` behavior\n\nThe native tab item is discovered and tappable, but the identifier field is empty:\n\n```text\neNN|tap|tab|Dashboard|1|\neNN|tap|tab|Wheels|0|\neNN|tap|tab|Positions|0|\neNN|tap|tab|Spec Trades|0|\neNN|tap|tab|Trade Log|0|\n```\n\nTapping the `Wheels` tab element reference works and changes to the Wheels screen.\n\n## Expected or requested behavior\n\nIf SwiftUI forwards the identifier in a way XcodeBuildMCP can observe, it would be useful for `snapshot-ui` to surface `tab_wheels` on the native tab target.\n\nIf SwiftUI does not forward that identifier to the underlying `UITabBarItem`, documentation confirming that tab automation should use role + label would also resolve the ambiguity.\n\n## Environment\n\n- XcodeBuildMCP: 2.6.2\n- Relevant fix already present: v2.6.1 tab bar item discovery fix\n- App UI: SwiftUI `TabView` using `SwiftUI.Tab`\n","author":{"url":"https://github.com/dpearson2699","@type":"Person","name":"dpearson2699"},"datePublished":"2026-06-03T04:32:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/442/XcodeBuildMCP/issues/442"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:15405b76-47f2-b76e-0852-cf1dd5b6eada |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C25E:3FCB4A:6ADFC1:978450:6A4CAE63 |
| html-safe-nonce | 8dcc585bd6aec6ff50ab7bc1cd768c1a2caccd836401be899fe1a0109f18a9e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjVFOjNGQ0I0QTo2QURGQzE6OTc4NDUwOjZBNENBRTYzIiwidmlzaXRvcl9pZCI6IjUzNDc1ODA3NzMyMDAwODA0ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 657c667a17533aeea7303d0197956d97e857e3f634c6e633b3679d9579362807 |
| hovercard-subject-tag | issue:4576886064 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/XcodeBuildMCP/442/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7907953a44fb05e96bd18510df0229cc47fe227705a77ca79ac100ba60c86cc9/getsentry/XcodeBuildMCP/issues/442 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7907953a44fb05e96bd18510df0229cc47fe227705a77ca79ac100ba60c86cc9/getsentry/XcodeBuildMCP/issues/442 |
| og:image:alt | Summary XcodeBuildMCP v2.6.1 fixed the important tab automation issue: native UITabBar items are now discoverable and tappable through snapshot-ui. I verified this with XcodeBuildMCP 2.6.2. There m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dpearson2699 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/XcodeBuildMCP git https://github.com/getsentry/XcodeBuildMCP.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 945551361 |
| octolytics-dimension-repository_nwo | getsentry/XcodeBuildMCP |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 945551361 |
| octolytics-dimension-repository_network_root_nwo | getsentry/XcodeBuildMCP |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width