How to press and hold in Xcode simulator

39 views Asked by At

I’m developing a flutter app using vs code and the Xcode simulator and I want to test a function where I have to press and hold. It’s not working how can I test it?

I tried the shift and left click but it didn’t work. I also tried to connect my iphone but it also didn’t work because of the certification.

1

There are 1 answers

4
Benzy Neez On

Check the Trackpad settings on the Mac:

Screenshot

With the settings shown here, a LongPressGesture works for me when I hold using three fingers. It also works to "force click" the trackpad with one finger and then hold. I haven't tried it wuth Flutter though.