perf(ios): reuse orientation when preparing a synthesized tap
Merged
TH
4h ago+23+23+01234567890123456789-17-17-01234567890123456789
Summary
Use one app orientation sample to build the sole-screen frame and the prepared iOS coordinate context. In #5141 this is the prerequisite for sharing prepared tap geometry with deep targets. The existing window and display checks still run at dispatch.
Value
By source trace, deferred and sole-screen fallback preparation go from two orientation calls to one. Resolved-window preparation on iPhone also goes from two calls to one. Wall-clock latency was not measured.
Validation
- Head
2edff9c10887fd1b39918bd909349211885d3dac.pnpm build,pnpm build:xcuitest:ios, andpnpm check:xctest-selectionpassed. - With runner unit tests enabled, all five synthesized tap context XTests passed on iPhone 17 Pro Simulator, iOS 27.0, including coordinate dispatch and XCTest fallback.
- Independent Astra source review found no blocking issues. Physical lock and unlock, landscape deep press, and iPad window placement still require their own device evidence.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.