There is no set dress code for swimming, but general consensus is that you should wear a swimsuit underneath your board shorts. Board shorts can be seen as a form of clothing that show off your body, so it's important to keep them clean and free of dirt, dust, and other debris.