r/iOSProgramming • • 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?

5 Upvotes

29 comments sorted by

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.

1

u/BeDevForLife Oct 29 '26

Thank You!!

1

u/BeDevForLife Nov 04 '26

Thankfully, it is fixed in Xcode 27.3!!

2

u/EddieLukeAtmey 22d ago

XC 27.3 is still in beta, so I couldn't try it yet. Can you check if they also fixed the shake device issue? previously, we have an option to trigger shake (cmd + control + Z), but since device hub, I have to use a command in terminal to trigger shake, it kinda sucks.

the command btw:
for u in $(xcrun simctl list devices booted | grep -oE '[0-9A-F-]{36}'); do xcrun simctl spawn $u notifyutil -p com.apple.UIKit.SimulatorShake; done

2

u/BeDevForLife 22d ago

I haven’t tried it my self yet, but from the release notes , it seems not fixed yet

2

u/jeremyhu 5d ago

A menu item for Shake was added in 27.2 Beta 2. We are not tracking any issue related to shake, so of you are having problems with Shake in 27.2, please file a bug report at bugreport.apple.com

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.

1

u/BeDevForLife Oct 29 '26

It is so annoying, man, I can't even test my app properly

1

u/noobcryptotrader Oct 29 '26

they want you to purchase the new PROLED

1

u/BeDevForLife Nov 04 '26

Thankfully, it is fixed in Xcode 27.3!!

1

u/HighHike Nov 02 '26

I found out it works only on iOS 27 sims for some reason.

2

u/TheSonicKind Oct 29 '26

option seems to have been reserved for unfolding the Duo and only that in Device Hub

1

u/BeDevForLife Nov 04 '26

Thankfully, it is fixed in Xcode 27.3!!

2

u/BP3D Nov 02 '26

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.

3

u/BeDevForLife Nov 04 '26

Thankfully, it is fixed in Xcode 27.3!!

2

u/BP3D Nov 04 '26

Thanks! That is good to hear. I'm getting gun shy about updates.

2

u/BeDevForLife Nov 04 '26

They are gradually fixing problems introduced in the new device hub which is good. Keep in mind 27.3 is still in beta, so we have to wait a month or so.

1

u/Responsible-Offer724 12d ago

Yeah, it was always good practice to hold back and stay on stable versions for a while, but now it seems almost necessary. I'll be running Tahoe as long as I can it looks like.

2

u/maztak_ 25d ago

Shift + 3 fingers drug to zoom

1

u/BeDevForLife 25d ago

I’ll try it. Thanks

1

u/maztak_ 21d ago

i found this solution works only in maps, but in like picture zoom we can't pinch yet :(

2

u/jeremyhu 6d 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.

1

u/BeDevForLife 5d ago

Thanks for re-adding it, I noticed a lot of things are getting fixed/re-added.

2

u/Responsible-Offer724 12d 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?

1

u/jeremyhu 6d ago

Can you elaborate on this? You certainly can zoom. There are zoom buttons in the toolbar and cmd +/- zoom in and out.

Is there something different that you are looking for? Please file a feedback report at bugreport.apple.com with a sysdiagnose and a screen recording, so I can take a look...

1

u/Responsible-Offer724 6d ago

The simulator in device hub is currently either broken, or has been crippled intentionally. You used to be able to hold command and then two circles would appear and you could use the mouse to simulate pinch and rotation gestures. According to documentation you should be able to simulate the gestures directly on the touch pad now, but that doesn't work either, and is also a downgrade in terms of workflow efficiency. Perhaps it only works with the new touch screen...

I am currently using this workaround that restores the expected functionality.

https://github.com/agg23/DeviceHubMouseMultitouch

I am on xcode & device hub 27.2, latest version.

1

u/jeremyhu 5d ago

Ah. You are talking about Simulator's multitouch support (using the option key). I thought you were talking about zoom, sorry.

I answered in another thread about the reasons why this wasn't included in Device Hub, but the short answer is that the functionality is present in Xcode 27.3, so you might want to grab the latest beta

1

u/Responsible-Offer724 5d ago

I will use the workaround and wait for the proper release. Thanks.