Swimming / underwater without glasses ?

Whos short sighted can not see well without glasses

Can you wear contacts underwater or can you only wear for surface swimming like bit being in the water

I am thinking of teaching my self to swim but i can not see phone without glasses on phone has to be a little finger distance away as eye sight deterioratd a lot

Basiclaly my question is will i be able learn to swim using contacts

Is there a specific brand etc

Gets me really down low about my eye sight :(