"I like swimming" - if you really enjoy the process;
"I like to swim" - if you got used to it and just do it pretty often.