Alex Bollbach
Alex Bollbach

Reputation: 4570

Pinch Gesture in Swift Playground?

Initially I read you couldn't experiment with touches or gestures in a playground. Then I found that touchesMoved or a tap gesture would react. However, I now am testing a UIPinchGestureRecognizer. There isn't the feature that lets you simulate two fingers with the alt key in the playground. Are you telling me I have to create an Xcode project and compile and run for each iteration simply because its a pinch and not a tap?

Upvotes: 6

Views: 363

Answers (1)

Marco Boerner
Marco Boerner

Reputation: 1556

As of 2020:

Option + Shift will do the trick. You might have to click into the live view first but then it should work.

Upvotes: 0

Related Questions