Quickly swap shapes

You can quickly swap a shape in-place in draw.io. Drag the new shape from the library on top of the old shape until you see the swap icon appear, then release. Swapping shapes in-place in draw.io