You should also avoid drinking coffee before swimming. Because after drinking coffee, you may need to go to the toilet again and again, due to which there can be dehydration i.e. lack of water in the body. Not only this, swimming after drinking coffee can also make you feel like vomiting.