Anything that gets you moving and gets your heart rate up is good for weight loss. If swimming does that for you, then your going to start making body compostiion changes. Don't forget your nutrition though. What you put in your mouth has a large impact on weight loss success.
If you are persistent, you will reach your goal. If you are consistent, you will keep it.