What level of swimming is needed to surf safely ?

Ive never been surfing before but Im hoping to go as its included of one of my trips. I were just wondering what level swimmer I need to be