I don't think that the camera liked the swimming part.
The suggested procedure for electronic devices (especially phones) is as follows:
1. Do NOT turn ON the device.
2. Bury the device in a bowl of uncooked rice for 24 hours. The uncooked rice is a desiccant.
3. Take the device out and set it on a table for 4 to 8 hours.
4. Now turn ON the device. It may work.