SwiftUI: Multitouch gesture / Multiple Gestures
问题 Is there a way in SwiftUI to track multiple gestures at once? I want my one main view to be able to keep track of multiple fingers dragging at once. ZStack { Color.black .edgesIgnoringSafeArea(.all) .gesture(DragGesture(minimumDistance: 0) .onChanged { (value) in //some logic }.onEnded { (value) in //more logic }) //other code } I have this code however I can only ever have one drag gesture being processed at a time. If one finger is dragging and then I try to add another one the first one