Post

Replies

Boosts

Views

Activity

Reply to How to determine tap position on image in SwiftUI?
Hi a) In the case >= ios 16 use onTapGesture(count:coordinateSpace:perform:) b) In the case < ios 16 You can try TapGesture().sequenced(before: DragGesture(minimumDistance: 0, coordinateSpace: .local).onEnded({ value in                  print("Tap \(value.location)")                 })) Or implement based on UIKit UIView
Sep ’22