Well, of course, it is bad to go swimming, after the corneal transparent surgery. And generally speaking, you are not supposed to swim in the first several weeks after the surgery. Or it can just damage your eyes. After the eye surgery, your eyes can be sensitive and very fragile. When you have swimming in the water, it can make many viruses invade into your eyes, and it can lead to infection to your eyes. In some cases, it can also cause serious eye diseases, so just be careful after the surgery. Anyway, it can be dangerous. Also, you should not watch too much tv or computer too. Just follow the things the doctor has told you. By the way, you can avoid eye injuries by wearing a protective shield at night and with naps until you are advised by your doctor.
It is not OK for you to swim after corneal transparent. It will be bad for your eyes because of the inner bacterium in the swimming pool. The invisible bacterium may get into your eyes and let them get infection. Even though you wear the goggles, the pressure in the water will make your eyes pressure gets high which will be bad for the recovery of the eyes.
Corneal transplant is one of the most complicated eye surgeries we might take in our lifetime. Anyway, after that you need to take care of your eyes. As you know, some public swimming pool are quite dirty and contains some toxic substance such as toxic chlorine which could make your eyes infected again, unless you wear swimming goggles.