1

Im experimenting with the 3D-Touch/Force-Touch these days and Im new to iOS Development.

If I search for 3D-Touch in Swift - I always find something about Peek & Pop or Quick-Actions on Home Screen.

I want to ask, if its possible to initiate a 3D-Touch somewhere on my View? For example - Every time I make a 3D-Touch, a rectangle will be shown on that specific Touch-position. And after that make some other gestures with the rectangle.

Thanks in advance!

1zz0
  • 264
  • 3
  • 18
  • 1
    Look at the `touchesBegan`, `moved`, `ended` and `canceled` methods of `UIView`, by overriding those you can get the touch object and get the force property. – EmilioPelaez Apr 25 '18 at 18:31
  • 1
    I did use [this](https://github.com/FlexMonkey/DeepPressGestureRecognizer) Gesture Recognizer with some minor tweaks for little customizations I needed – leandrodemarco Apr 25 '18 at 18:41
  • Is there maybe a more elegegant solution, instead of the force property? Because its not working well - sometimes it shows 0 when i make a force touch. – 1zz0 Apr 26 '18 at 22:19

0 Answers0