Image("Queen-black")
.position(movingPiecePosition)
.gesture(DragGesture().onChanged() { dragGestureValue in
movingPiecePosition = dragGestureValue.location
})
GitHub repo:
https://github.com/zhijunsheng/chess-...