Question: is swim a common noun?
Answer: Swimming is a verb; the present participle of swim. Here, it is the subject of a sentence and it can be called a noun. So, swimming is a gerund.