The joy of swimming: How getting in the water can improve physical and mental health
https://edition.cnn.com/2022/07/29/sport/joy-swimming-physical-mental-health-spt-intl/index.html
When I remember the days I commuted to swimming school, my weight didn't increase even after eating a lot. And also, I didn't encounter mental health issues then.
So, as far as my experience, the effects of swimming on the article seem to be true.