In general, you should never have to wear any underwear under your swimsuit. If it is a one piece, you don't need to wear a bra or panties. If it is swim trunks, swim shorts or swim briefs, you usually shouldn't wear underwear underneath those either.