How does it work? When your child is potty trained and your going to a pool?

Do you still put a swim diaper on? Or underwear underneath?