Question: how long do you have to wait to swim after you dye your hair?
Answer: You should wait 3 days to wash your hair after getting a color treatment so, I'm pretty sure 3 days before swimming would be the smart thing to do. Chlorine is never a good thing for color treated hair, so don't stay in the water for long periods of time, and rinse, and dry your hair thoroughly after getting out.