TouchVisualizer
TouchVisualizer copied to clipboard
Get touch position
How can I get touch positions(x and y) from Visualizer?
You can start the visualizer in viewDidLoad()
Visualizer.start()
Then you can call the .getTouches() function in the scope (ex: function) you want
let touches = Visualizer.getTouches()
Finally, You can easily go through the touches ([UITouch]) by
for touch in touches {
print(touch.location(in:theViewYouWant))
}