Consider this sentence:
I saw them swimming in the lake.
How is "swimming" used in the sentence? Is it a gerund or verb or anything else and how is it connected to the sentence? I am mostly aware of basics but really can't understand this usage of "swimming in the lake" and how it is directly connected to main sentence.
Can anyone do a complete grammatical break-down of the sentence?