"Learn swimming" is the normal thing to say. It implies a systematic attempt to learn something completely.
"To pick up" implies learning that is quick, casual, perhaps incomplete.
"I'm taking two lessons a week so that I can learn Spanish."
"I've never studied Spanish, but I was able to pick up a little Spanish when I was in Mexico City for a month on business."