You can use swimming goggles for near-sighted eyes or far-sighted eyes depending on your eyes condition! These goggles are like the normal ones but have the lens that like those of your glasses! Have fun swimming with your new goggles!
You can use the glasses while wading in the pool but not swimming. For swimming, you should visit an optician who will recommend some specialized swimming goggles for you. Otherwise, you risk losing your glasses in the pool.