A sex attacker who raped a sleeping woman has been jailed for three years.

Keiran Smart, formerly of Dundee, was found guilty of raping the 21-year-old as she slept at a house in Carnoustie, Angus, in October 2016.

Smart, 21, denied committing the offence but a trial found him guilty after it emerged he sent apologetic messages to his victim the day after the incident.

He was acquitted of a charge of raping another woman, now aged 24, at a flat in Dundee in 2015.

During his trial, the court heard Smart could become "angry or aggressive" after he had been drinking.

On Thursday, defence counsel Ronnie Renucci told the High Court in Edinburgh Smart had been diagnosed with ADHD and had suffered from depression and anxiety.

He added: "He had a number of panic attacks while in custody."

Mr Renucci argued that the offence Smart was convicted of could be distinguished from other rape cases that involved a degree of force or violence and said: "Clearly that was not the case in this offence. There is no suggestion of force."

Lord Burns said there was reason to think that if Smart engaged with rehabilitation programmes any risk to the public was likely to be diminished.

The judge said he would impose an extended sentence so that after his release he would be subject to monitoring, supervision and treatment that would also diminish risk.

Smart was placed on the sex offenders register indefinitely and will be supervised for two years upon release.