I'd like to create my own gesture recognizer, and to create a kind of pinch & zoom I'd like to get position of all fingers at any moment.
Right now I'm able to track a finger with :
var countTouch:[Int] = []
var rawPoints:[Int] = []
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
if(rawPoints[rawPoints.count-2] != Int(location.x) && rawPoints[rawPoints.count-1] != Int(location.y)) {
rawPoints.append(Int(location.x))
rawPoints.append(Int(location.y))
}
}
And to know how many fingers are touching the screen at the moment with :
super.touchesMoved(touches,
countTouch.append((event?.allTouches?.count)!)
But I don't know where all the data about position of the other fingers are going.
Can someone help on this please ?