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?

4 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 27d ago

Thankfully, it is fixed in Xcode 27.3!!

2

u/EddieLukeAtmey 18d 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 17d ago

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

2

u/jeremyhu 1d 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 27d ago

Thankfully, it is fixed in Xcode 27.3!!

1

u/HighHike 29d ago

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 27d ago

Thankfully, it is fixed in Xcode 27.3!!

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.

3

u/BeDevForLife 27d ago

Thankfully, it is fixed in Xcode 27.3!!

2

u/BP3D 26d ago

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

2

u/BeDevForLife 26d ago

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 7d 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_ 20d ago

Shift + 3 fingers drug to zoom

1

u/BeDevForLife 20d ago

I’ll try it. Thanks

1

u/maztak_ 16d ago

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

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.

1

u/BeDevForLife 23h ago

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

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?

1

u/jeremyhu 1d 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 1d 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 1d 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 1d ago

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