"I swam every day when I was at the beach." Simple past
"I used to swim every day when I lived close to the beach." used to + infinitive
"I was swimming every day when I was at the beach." Past progressive
"I had been swimming every day at that time." Past perfect progressive
Probably others. It depends on the context. "Used to swim" is probably the most common.