r/iOSProgramming • u/BeDevForLife • Oct 29 '26
Discussion Anyone found a workaround for pinch-to-zoom in the new Xcode 27 Device Hub? Trackpad isn't working
Hey everyone,
Ever since updating to Xcode 27 and moving over to the new Device Hub app, I've been hitting a wall trying to test multi-touch gestures.
I’m building an app that relies heavily on zooming, but I can't get pinch-to-zoom or zoom out to work at all. I tried using the standard Mac trackpad gesture, but it completely ignores the input.
In the old Simulator, we could use the Option key to bring up the dual-finger touch points, but that doesn't seem to trigger either.
Has anyone found a reliable workaround or hidden menu setting to trigger multi-finger gestures in Device Hub?
3
u/HuguoYugo Oct 29 '26
Not sure about the new Device Hub specifically, but if the simulated gesture is flaky, a real device is the dependable way to test pinch. For automated checks, XCUITest has pinch(withScale:velocity:) on any element, so you can at least verify your zoom logic without a trackpad gesture getting through.
2
u/kepler4and5 Oct 29 '26
Using the trackpad works for me right now but I remember it didn't work yesterday (same with scrolling and other touch gestures). I haven't done anything on my end so I have no idea what changed.
2
u/TheSonicKind Oct 29 '26
option seems to have been reserved for unfolding the Duo and only that in Device Hub
2
u/BP3D 28d ago
This restores the functionality but has some quirks. Like it doesn't work when more than one device is up on Device Hub. Device Hub is an all around downgrade.
2
u/maztak_ 20d ago
Shift + 3 fingers drug to zoom
2
u/jeremyhu 1d ago
Device Hub supports multi-touch interactions on touch displays (iPads in Sidecar as well as the latest MacBook Pro display).
We've re-added the option-click experience in 27.3 (still in beta) by popular demand as well.
2
u/Responsible-Offer724 7d ago
apple is pissing me off more and more. just updated my system and was setting up a demo in simulator for a client and we just... can't zoom? wtf. what could possibly be the reason to take out the standard functionality that has existed for a decade?