mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Convert tap gesture coordinate to location
This commit is contained in:
parent
992a560564
commit
53dc82c0f6
1 changed files with 5 additions and 0 deletions
|
|
@ -151,6 +151,11 @@ struct MeshMap: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.onLongPressGesture(minimumDuration: 0.5, maximumDistance: 100, pressing: {
|
||||
pressing in
|
||||
print(pressing)
|
||||
|
||||
}, perform: { value in })
|
||||
.onTapGesture(perform: { screenCoord in
|
||||
newWaypointLocation = reader.convert(screenCoord, from: .local)
|
||||
print("Tapped at \(newWaypointLocation)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue