A swimming teacher who allegedly molested two girls has been granted bail pending an appeal of his four month jail sentence.

Two primary school students were allegedly molested by their swimming teacher during a lesson at a Brisbane pool.

The girls, aged nine and 10 at the time, complained their male instructor was “patting” their genitals while teaching them how to swim, a Brisbane court has heard.

The Supreme Court was told hundreds of primary school students visited the southwest Brisbane pool the day the complaint was made in March last year.

Earlier this year the 50-year-old coach pleaded not guilty to five indecent treatment charges but was convicted on three charges at trial.

He was jailed for four months, but is challenging the convictions, and on Thursday was granted bail pending an appeal.

Supreme Court Justice Ann Lyons said the man had some prospect of winning the appeal, had ties to the community and a history of showing up to court.

She banned him from taking regulated employment and said he must report to police weekly.