Swim shirts (or rash vests) protect your children from ultraviolet radiation (UVR) which reflects off water and sand.
When purchasing a swim shirt, for the best protection, choose one with long sleeves and a UPF 50+ rating which will block over 98% of UVR.
Rinse it well after each use and replace it when the lycra becomes thin or stretched.